*** empty log message ***
authorGert Driesen <drieseng@users.sourceforge.net>
Sat, 15 May 2004 16:12:18 +0000 (16:12 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Sat, 15 May 2004 16:12:18 +0000 (16:12 -0000)
svn path=/trunk/mcs/; revision=27451

mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationAccessControlAttribute.cs
mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationActivationAttribute.cs
mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationIDAttribute.cs
mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationNameAttribute.cs
mcs/class/System.EnterpriseServices/System.EnterpriseServices/ChangeLog

index 68f024978101fe4ea06402a6dd33c4e0c6388042..71783d2d391884660111e219d5791792168b0f82 100644 (file)
@@ -1,65 +1,85 @@
-// \r
-// System.EnterpriseServices.ApplicationAccessControlAttribute.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
-\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace System.EnterpriseServices {\r
-       [AttributeUsage (AttributeTargets.Assembly)]\r
-       [ComVisible(false)]\r
-       public sealed class ApplicationAccessControlAttribute : Attribute {\r
-\r
-               #region Fields\r
-\r
-               AccessChecksLevelOption accessChecksLevel;\r
-               AuthenticationOption authentication;\r
-               ImpersonationLevelOption impersonation;\r
-               bool val;\r
-\r
-               #endregion // Fields\r
-\r
-               #region Constructors\r
-\r
-               public ApplicationAccessControlAttribute ()\r
-               {\r
-                       this.val = false;\r
-               }\r
-\r
-               public ApplicationAccessControlAttribute (bool val)\r
-               {\r
-                       this.val = val;\r
-               }\r
-\r
-               #endregion // Constructors\r
-\r
-               #region Properties\r
-\r
-               public AccessChecksLevelOption AccessChecksLevel {\r
-                       get { return accessChecksLevel; }\r
-                       set { accessChecksLevel = value; }\r
-               }\r
-\r
-               public AuthenticationOption Authentication {\r
-                       get { return authentication; }\r
-                       set { authentication = value; }\r
-               }\r
-\r
-               public ImpersonationLevelOption ImpersonationLevel {\r
-                       get { return impersonation; }\r
-                       set { impersonation = value; }\r
-               }\r
-\r
-               public bool Value {\r
-                       get { return val; }\r
-                       set { val = value; }\r
-               }\r
-\r
-               #endregion // Properties\r
-       }\r
-}\r
+// 
+// System.EnterpriseServices.ApplicationAccessControlAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+
+namespace System.EnterpriseServices {
+       [AttributeUsage (AttributeTargets.Assembly)]
+       [ComVisible(false)]
+       public sealed class ApplicationAccessControlAttribute : Attribute, IConfigurationAttribute {
+               #region Fields
+
+               AccessChecksLevelOption accessChecksLevel;
+               AuthenticationOption authentication;
+               ImpersonationLevelOption impersonation;
+               bool val;
+
+               #endregion // Fields
+
+               #region Constructors
+
+               public ApplicationAccessControlAttribute ()
+               {
+                       this.val = false;
+               }
+
+               public ApplicationAccessControlAttribute (bool val)
+               {
+                       this.val = val;
+               }
+
+               #endregion // Constructors
+
+               #region Implementation of IConfigurationAttribute
+
+               bool IConfigurationAttribute.AfterSaveChanges (Hashtable info)
+               {
+                       return false;
+               }
+
+               [MonoTODO]
+               bool IConfigurationAttribute.Apply (Hashtable cache)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               bool IConfigurationAttribute.IsValidTarget (string s)
+               {
+                       return (s == "Application");
+               }
+
+               #endregion Implementation of IConfigurationAttribute
+
+               #region Properties
+
+               public AccessChecksLevelOption AccessChecksLevel {
+                       get { return accessChecksLevel; }
+                       set { accessChecksLevel = value; }
+               }
+
+               public AuthenticationOption Authentication {
+                       get { return authentication; }
+                       set { authentication = value; }
+               }
+
+               public ImpersonationLevelOption ImpersonationLevel {
+                       get { return impersonation; }
+                       set { impersonation = value; }
+               }
+
+               public bool Value {
+                       get { return val; }
+                       set { val = value; }
+               }
+
+               #endregion // Properties
+       }
+}
index 70e78c9fd287bfac41629e9cb19ad85900c147bf..54bcb3acd1915819ca87483e9ad088f08dfe9be7 100644 (file)
@@ -1,53 +1,75 @@
-// \r
-// System.EnterpriseServices.ApplicationActivationAttribute.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
-\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace System.EnterpriseServices {\r
-       [AttributeUsage (AttributeTargets.Assembly)]\r
-       [ComVisible(false)]\r
-       public sealed class ApplicationActivationAttribute : Attribute {\r
-\r
-               #region Fields\r
-\r
-               ActivationOption opt;\r
-               string soapMailbox;\r
-               string soapVRoot;       \r
-\r
-               #endregion // Fields\r
-\r
-               #region Constructors\r
-\r
-               public ApplicationActivationAttribute (ActivationOption opt)\r
-               {\r
-                       this.opt = opt;\r
-               }\r
-\r
-               #endregion // Constructors\r
-\r
-               #region Properties\r
-\r
-               public string SoapMailbox {     \r
-                       get { return soapMailbox; }\r
-                       set { soapMailbox = value; }\r
-               }\r
-\r
-               public string SoapVRoot {\r
-                       get { return soapVRoot; }\r
-                       set { soapVRoot = value; }\r
-               }\r
-\r
-               public ActivationOption Value {\r
-                       get { return opt; }\r
-               }\r
-\r
-               #endregion // Properties\r
-       }\r
-}\r
+// 
+// System.EnterpriseServices.ApplicationActivationAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+
+namespace System.EnterpriseServices {
+       [AttributeUsage (AttributeTargets.Assembly)]
+       [ComVisible(false)]
+       public sealed class ApplicationActivationAttribute : Attribute, IConfigurationAttribute {
+
+               #region Fields
+
+               ActivationOption opt;
+               string soapMailbox;
+               string soapVRoot;       
+
+               #endregion // Fields
+
+               #region Constructors
+
+               public ApplicationActivationAttribute (ActivationOption opt)
+               {
+                       this.opt = opt;
+               }
+
+               #endregion // Constructors
+
+               #region Implementation of IConfigurationAttribute
+
+               [MonoTODO]
+               bool IConfigurationAttribute.AfterSaveChanges (Hashtable info)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               bool IConfigurationAttribute.Apply (Hashtable cache)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               bool IConfigurationAttribute.IsValidTarget (string s)
+               {
+                       return (s == "Application");
+               }
+
+               #endregion Implementation of IConfigurationAttribute
+
+               #region Properties
+
+               public string SoapMailbox {     
+                       get { return soapMailbox; }
+                       set { soapMailbox = value; }
+               }
+
+               public string SoapVRoot {
+                       get { return soapVRoot; }
+                       set { soapVRoot = value; }
+               }
+
+               public ActivationOption Value {
+                       get { return opt; }
+               }
+
+               #endregion // Properties
+       }
+}
index 84a220515cf1bf33d08c8b71e099ecf6717bc9d8..1d3b477246c817d95957bb476233c98a1cbfa626 100644 (file)
@@ -1,41 +1,61 @@
-// \r
-// System.EnterpriseServices.ApplicationIDAttribute.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
-\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace System.EnterpriseServices {\r
-       [AttributeUsage (AttributeTargets.Assembly)]\r
-       [ComVisible(false)]\r
-       public sealed class ApplicationIDAttribute : Attribute {\r
-\r
-               #region Fields\r
-\r
-               Guid guid;\r
-\r
-               #endregion // Fields\r
-\r
-               #region Constructors\r
-\r
-               public ApplicationIDAttribute (string guid)\r
-               {\r
-                       this.guid = new Guid (guid);\r
-               }\r
-\r
-               #endregion // Constructors\r
-\r
-               #region Properties\r
-\r
-               public Guid Value {     \r
-                       get { return guid; }\r
-               }\r
-\r
-               #endregion // Properties\r
-       }\r
-}\r
+// 
+// System.EnterpriseServices.ApplicationIDAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+
+namespace System.EnterpriseServices {
+       [AttributeUsage (AttributeTargets.Assembly)]
+       [ComVisible(false)]
+       public sealed class ApplicationIDAttribute : Attribute, IConfigurationAttribute {
+
+               #region Fields
+
+               Guid guid;
+
+               #endregion // Fields
+
+               #region Constructors
+
+               public ApplicationIDAttribute (string guid)
+               {
+                       this.guid = new Guid (guid);
+               }
+
+               #endregion // Constructors
+
+               #region Implementation of IConfigurationAttribute
+
+               bool IConfigurationAttribute.AfterSaveChanges (Hashtable info)
+               {
+                       return false;
+               }
+
+               bool IConfigurationAttribute.Apply (Hashtable cache)
+               {
+                       return false;
+               }
+
+               bool IConfigurationAttribute.IsValidTarget (string s)
+               {
+                       return (s == "Application");
+               }
+
+               #endregion Implementation of IConfigurationAttribute
+
+               #region Properties
+
+               public Guid Value {     
+                       get { return guid; }
+               }
+
+               #endregion // Properties
+       }
+}
index 6ce06e870c1bf4796eced1edbf3f7890bb67c508..f944fcb3940e24f3a3f2251e7e8c3af7113baf26 100644 (file)
@@ -1,41 +1,62 @@
-// \r
-// System.EnterpriseServices.ApplicationNameAttribute.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
-\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace System.EnterpriseServices {\r
-       [AttributeUsage (AttributeTargets.Assembly)]\r
-       [ComVisible(false)]\r
-       public sealed class ApplicationNameAttribute : Attribute {\r
-\r
-               #region Fields\r
-\r
-               string name;\r
-\r
-               #endregion // Fields\r
-\r
-               #region Constructors\r
-\r
-               public ApplicationNameAttribute (string name)\r
-               {\r
-                       this.name = name;\r
-               }\r
-\r
-               #endregion // Constructors\r
-\r
-               #region Properties\r
-\r
-               public string Value {   \r
-                       get { return name; }\r
-               }\r
-\r
-               #endregion // Properties\r
-       }\r
-}\r
+// 
+// System.EnterpriseServices.ApplicationNameAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+
+namespace System.EnterpriseServices {
+       [AttributeUsage (AttributeTargets.Assembly)]
+       [ComVisible(false)]
+       public sealed class ApplicationNameAttribute : Attribute, IConfigurationAttribute {
+
+               #region Fields
+
+               string name;
+
+               #endregion // Fields
+
+               #region Constructors
+
+               public ApplicationNameAttribute (string name)
+               {
+                       this.name = name;
+               }
+
+               #endregion // Constructors
+
+               #region Implementation of IConfigurationAttribute
+
+               bool IConfigurationAttribute.AfterSaveChanges (Hashtable info)
+               {
+                       return false;
+               }
+
+               [MonoTODO]
+               bool IConfigurationAttribute.Apply (Hashtable cache)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               bool IConfigurationAttribute.IsValidTarget (string s)
+               {
+                       return (s == "Application");
+               }
+
+               #endregion Implementation of IConfigurationAttribute
+
+               #region Properties
+
+               public string Value {   
+                       get { return name; }
+               }
+
+               #endregion // Properties
+       }
+}
index 9c1a9b073173ba4d3e750d9c988352029cbf4507..cf1d833af159dcf39eb37edc10751bdfaba5fbf1 100644 (file)
@@ -1,3 +1,12 @@
+2004-05-15  Gert Driesen (drieseng@users.sourceforge.net)
+
+       * IConfigurationAttribute: added
+       * ApplicationAccessControlAttribute.cs:
+       * ApplicationActivationAttribute.cs:
+       * ApplicationIDAttribute.cs:
+       * ApplicationNameAttribute.cs: stubbed implementation of 
+       IConfigurationAttribute
+
 2004-05-13  Mike Kestner <mkestner@ximian.com>
 
        * RegistrationHelper.cs : add Guid and 2 methods