-// \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
+ }
+}
-// \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
+ }
+}
-// \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
+ }
+}
-// \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
+ }
+}
+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