using System; using System.Collections; using System.Diagnostics; using System.EnterpriseServices; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Transactions; using Unity; [assembly: ComVisible(true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("System.EnterpriseServices.dll")] [assembly: AssemblyDescription("System.EnterpriseServices.dll")] [assembly: AssemblyDefaultAlias("System.EnterpriseServices.dll")] [assembly: AssemblyCompany("Mono development team")] [assembly: AssemblyProduct("Mono Common Language Infrastructure")] [assembly: AssemblyCopyright("(c) Various Mono authors")] [assembly: SatelliteContractVersion("4.0.0.0")] [assembly: NeutralResourcesLanguage("en-US")] [assembly: ComCompatibleVersion(1, 0, 3300, 0)] [assembly: ApplicationID("1e246775-2281-484f-8ad4-044c15b86eb7")] [assembly: ApplicationName(".NET Utilities")] [assembly: Guid("4fb2d46f-efc8-4643-bcd0-6e5bfa6a174c")] [assembly: CLSCompliant(true)] [assembly: AssemblyDelaySign(true)] [assembly: AssemblyInformationalVersion("4.6.57.0")] [assembly: AssemblyFileVersion("4.6.57.0")] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: CompilationRelaxations(CompilationRelaxations.NoStringInterning)] [assembly: AssemblyVersion("4.0.0.0")] internal static class Consts { public const string MonoCorlibVersion = "1A5E0066-58DC-428A-B21C-0AD6CDAE2789"; public const string MonoVersion = "6.13.0.0"; public const string MonoCompany = "Mono development team"; public const string MonoProduct = "Mono Common Language Infrastructure"; public const string MonoCopyright = "(c) Various Mono authors"; public const string FxVersion = "4.0.0.0"; public const string FxFileVersion = "4.6.57.0"; public const string EnvironmentVersion = "4.0.30319.42000"; public const string VsVersion = "0.0.0.0"; public const string VsFileVersion = "11.0.0.0"; private const string PublicKeyToken = "b77a5c561934e089"; public const string AssemblyI18N = "I18N, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; public const string AssemblyMicrosoft_JScript = "Microsoft.JScript, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblyMono_Http = "Mono.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; public const string AssemblyMono_Posix = "Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; public const string AssemblyMono_Security = "Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; public const string AssemblyCorlib = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; public const string AssemblySystem = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; public const string AssemblySystem_Data = "System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; public const string AssemblySystem_Design = "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_Drawing = "System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_Messaging = "System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_Security = "System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_Web = "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; public const string AssemblySystem_2_0 = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; public const string AssemblySystemCore_3_5 = "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; public const string AssemblySystem_Core = "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; public const string WindowsBase_3_0 = "WindowsBase, Version=3.0.0.0, PublicKeyToken=31bf3856ad364e35"; public const string AssemblyWindowsBase = "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; public const string AssemblyPresentationCore_3_5 = "PresentationCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; public const string AssemblyPresentationCore_4_0 = "PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; public const string AssemblyPresentationFramework_3_5 = "PresentationFramework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; public const string AssemblySystemServiceModel_3_0 = "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } namespace System { [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] internal class MonoTODOAttribute : Attribute { private string comment; public string Comment => comment; public MonoTODOAttribute() { } public MonoTODOAttribute(string comment) { this.comment = comment; } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] internal class MonoDocumentationNoteAttribute : MonoTODOAttribute { public MonoDocumentationNoteAttribute(string comment) : base(comment) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] internal class MonoExtensionAttribute : MonoTODOAttribute { public MonoExtensionAttribute(string comment) : base(comment) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] internal class MonoInternalNoteAttribute : MonoTODOAttribute { public MonoInternalNoteAttribute(string comment) : base(comment) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] internal class MonoLimitationAttribute : MonoTODOAttribute { public MonoLimitationAttribute(string comment) : base(comment) { } } [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] internal class MonoNotSupportedAttribute : MonoTODOAttribute { public MonoNotSupportedAttribute(string comment) : base(comment) { } } } namespace System.EnterpriseServices { [Serializable] public enum AccessChecksLevelOption { Application, ApplicationComponent } [Serializable] public enum ActivationOption { Library, Server } [ComVisible(false)] public sealed class Activity { [MonoTODO] public Activity(ServiceConfig cfg) { throw new NotImplementedException(); } [MonoTODO] public void AsynchronousCall(IServiceCall serviceCall) { throw new NotImplementedException(); } [MonoTODO] public void BindToCurrentThread() { throw new NotImplementedException(); } [MonoTODO] public void SynchronousCall(IServiceCall serviceCall) { throw new NotImplementedException(); } [MonoTODO] public void UnbindFromThread() { throw new NotImplementedException(); } } [ComVisible(false)] [AttributeUsage(AttributeTargets.Assembly)] public sealed class ApplicationAccessControlAttribute : Attribute, IConfigurationAttribute { private AccessChecksLevelOption accessChecksLevel; private AuthenticationOption authentication; private ImpersonationLevelOption impersonation; private bool val; 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; } } public ApplicationAccessControlAttribute() { val = false; } public ApplicationAccessControlAttribute(bool val) { this.val = val; } bool IConfigurationAttribute.AfterSaveChanges(Hashtable info) { return false; } [MonoTODO] bool IConfigurationAttribute.Apply(Hashtable cache) { throw new NotImplementedException(); } bool IConfigurationAttribute.IsValidTarget(string s) { return s == "Application"; } } [AttributeUsage(AttributeTargets.Assembly)] [ComVisible(false)] public sealed class ApplicationActivationAttribute : Attribute, IConfigurationAttribute { private ActivationOption opt; private string soapMailbox; private string soapVRoot; public string SoapMailbox { get { return soapMailbox; } set { soapMailbox = value; } } public string SoapVRoot { get { return soapVRoot; } set { soapVRoot = value; } } public ActivationOption Value => opt; public ApplicationActivationAttribute(ActivationOption opt) { this.opt = opt; } [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"; } } [AttributeUsage(AttributeTargets.Assembly)] [ComVisible(false)] public sealed class ApplicationIDAttribute : Attribute, IConfigurationAttribute { private Guid guid; public Guid Value => guid; public ApplicationIDAttribute(string guid) { this.guid = new Guid(guid); } bool IConfigurationAttribute.AfterSaveChanges(Hashtable info) { return false; } bool IConfigurationAttribute.Apply(Hashtable cache) { return false; } bool IConfigurationAttribute.IsValidTarget(string s) { return s == "Application"; } } [AttributeUsage(AttributeTargets.Assembly)] [ComVisible(false)] public sealed class ApplicationNameAttribute : Attribute, IConfigurationAttribute { private string name; public string Value => name; public ApplicationNameAttribute(string name) { this.name = name; } bool IConfigurationAttribute.AfterSaveChanges(Hashtable info) { return false; } [MonoTODO] bool IConfigurationAttribute.Apply(Hashtable cache) { throw new NotImplementedException(); } bool IConfigurationAttribute.IsValidTarget(string s) { return s == "Application"; } } [ComVisible(false)] [AttributeUsage(AttributeTargets.Assembly)] public sealed class ApplicationQueuingAttribute : Attribute { private bool enabled; private int maxListenerThreads; private bool queueListenerEnabled; public bool Enabled { get { return enabled; } set { enabled = value; } } public int MaxListenerThreads { get { return maxListenerThreads; } set { maxListenerThreads = value; } } public bool QueueListenerEnabled { get { return queueListenerEnabled; } set { queueListenerEnabled = value; } } public ApplicationQueuingAttribute() { enabled = true; queueListenerEnabled = false; maxListenerThreads = 0; } } [Serializable] public enum AuthenticationOption { Call = 3, Connect = 2, Default = 0, Integrity = 5, None = 1, Packet = 4, Privacy = 6 } [AttributeUsage(AttributeTargets.Method)] [ComVisible(false)] public sealed class AutoCompleteAttribute : Attribute { private bool val; public bool Value => val; public AutoCompleteAttribute() { val = true; } public AutoCompleteAttribute(bool val) { this.val = val; } } [ComVisible(false)] public struct BOID { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] public byte[] rgb; } public sealed class BYOT { private BYOT() { } [MonoTODO] public static object CreateWithTipTransaction(string url, Type t) { throw new NotImplementedException(); } [MonoTODO] public static object CreateWithTransaction(object transaction, Type t) { throw new NotImplementedException(); } } [Serializable] [ComVisible(false)] public enum BindingOption { NoBinding, BindingToPoolThread } [ComVisible(false)] [AttributeUsage(AttributeTargets.Class)] public sealed class COMTIIntrinsicsAttribute : Attribute { private bool val; public bool Value => val; public COMTIIntrinsicsAttribute() { val = false; } public COMTIIntrinsicsAttribute(bool val) { this.val = val; } } [ComVisible(false)] [AttributeUsage(AttributeTargets.Class)] public sealed class ComponentAccessControlAttribute : Attribute { private bool val; public bool Value => val; public ComponentAccessControlAttribute() { val = false; } public ComponentAccessControlAttribute(bool val) { this.val = val; } } [ComVisible(false)] [AttributeUsage(AttributeTargets.Class)] public sealed class ConstructionEnabledAttribute : Attribute { private string def; private bool enabled; public string Default { get { return def; } set { def = value; } } public bool Enabled { get { return enabled; } set { enabled = value; } } public ConstructionEnabledAttribute() { def = string.Empty; enabled = true; } public ConstructionEnabledAttribute(bool val) { def = string.Empty; enabled = val; } } public sealed class ContextUtil { private static bool deactivateOnReturn; private static TransactionVote myTransactionVote; public static Guid ActivityId { [MonoTODO] get { throw new NotImplementedException(); } } public static Guid ApplicationId { [MonoTODO] get { throw new NotImplementedException(); } } public static Guid ApplicationInstanceId { [MonoTODO] get { throw new NotImplementedException(); } } public static Guid ContextId { [MonoTODO] get { throw new NotImplementedException(); } } public static bool DeactivateOnReturn { get { return deactivateOnReturn; } set { deactivateOnReturn = value; } } public static bool IsInTransaction { [MonoTODO] get { throw new NotImplementedException(); } } public static bool IsSecurityEnabled { [MonoTODO] get { throw new NotImplementedException(); } } [MonoTODO] public static TransactionVote MyTransactionVote { get { return myTransactionVote; } set { myTransactionVote = value; } } public static Guid PartitionId { [MonoTODO] get { throw new NotImplementedException(); } } public static object Transaction { [MonoTODO] get { throw new NotImplementedException(); } } public static Transaction SystemTransaction { [MonoTODO] get { throw new NotImplementedException(); } } public static Guid TransactionId { [MonoTODO] get { throw new NotImplementedException(); } } internal ContextUtil() { } [MonoTODO] public static void DisableCommit() { throw new NotImplementedException(); } [MonoTODO] public static void EnableCommit() { throw new NotImplementedException(); } [MonoTODO] public static object GetNamedProperty(string name) { throw new NotImplementedException(); } [MonoTODO] public static bool IsCallerInRole(string role) { throw new NotImplementedException(); } [MonoTODO] public static bool IsDefaultContext() { throw new NotImplementedException(); } [MonoTODO] public static void SetAbort() { throw new NotImplementedException(); } [MonoTODO] public static void SetComplete() { throw new NotImplementedException(); } [MonoTODO] public static void SetNamedProperty(string name, object value) { throw new NotImplementedException(); } } [ComVisible(false)] [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Interface)] public sealed class DescriptionAttribute : Attribute { public DescriptionAttribute(string desc) { } } [ComVisible(false)] [AttributeUsage(AttributeTargets.Class)] public sealed class EventClassAttribute : Attribute { private bool allowInProcSubscribers; private bool fireInParallel; private string publisherFilter; public bool AllowInprocSubscribers { get { return allowInProcSubscribers; } set { allowInProcSubscribers = value; } } public bool FireInParallel { get { return fireInParallel; } set { fireInParallel = value; } } public string PublisherFilter { get { return publisherFilter; } set { publisherFilter = value; } } public EventClassAttribute() { allowInProcSubscribers = true; fireInParallel = false; publisherFilter = null; } } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class EventTrackingEnabledAttribute : Attribute { private bool val; public bool Value => val; public EventTrackingEnabledAttribute() { val = true; } public EventTrackingEnabledAttribute(bool val) { this.val = val; } } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class ExceptionClassAttribute : Attribute { private string name; public string Value => name; public ExceptionClassAttribute(string name) { this.name = name; } } [ComImport] [Guid("FE6777FB-A674-4177-8F32-6D707E113484")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IAsyncErrorNotify { void OnError(int hresult); } internal interface IConfigurationAttribute { bool AfterSaveChanges(Hashtable info); bool Apply(Hashtable info); bool IsValidTarget(string s); } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class IISIntrinsicsAttribute : Attribute { private bool val; public bool Value => val; public IISIntrinsicsAttribute() { val = true; } public IISIntrinsicsAttribute(bool val) { this.val = val; } } [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("51372AFD-CAE7-11CF-BE81-00AA00A2FA25")] public interface IPlaybackControl { void FinalClientRetry(); void FinalServerRetry(); } [ComImport] [Guid("72380d55-8d2b-43a3-8513-2b6ef31434e9")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IProcessInitControl { void ResetInitializerTimeout(int dwSecondsRemaining); } [ComImport] [Guid("1113f52d-dc7f-4943-aed6-88d04027e32a")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IProcessInitializer { void Shutdown(); void Startup([In][MarshalAs(UnmanagedType.IUnknown)] object punkProcessControl); } [Guid("55e3ea25-55cb-4650-8887-18e8d30bb4bc")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IRegistrationHelper { void InstallAssembly([In][MarshalAs(UnmanagedType.BStr)] string assembly, [In][Out][MarshalAs(UnmanagedType.BStr)] ref string application, [In][Out][MarshalAs(UnmanagedType.BStr)] ref string tlb, [In] InstallationFlags installFlags); void UninstallAssembly([In][MarshalAs(UnmanagedType.BStr)] string assembly, [In][MarshalAs(UnmanagedType.BStr)] string application); } [Guid("6619a740-8154-43be-a186-0319578e02db")] public interface IRemoteDispatch { [AutoComplete] string RemoteDispatchAutoDone(string s); [AutoComplete(false)] string RemoteDispatchNotAutoDone(string s); } internal interface ISecurityCallContext { int Count { get; } void GetEnumerator(ref IEnumerator enumerator); object GetItem(string user); bool IsCallerInRole(string role); bool IsSecurityEnabled(); bool IsUserInRole(ref object user, string role); } internal interface ISecurityCallersColl { int Count { get; } void GetEnumerator(out IEnumerator enumerator); ISecurityIdentityColl GetItem(int idx); } internal interface ISecurityIdentityColl { int Count { get; } void GetEnumerator(out IEnumerator enumerator); SecurityIdentity GetItem(int idx); } [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("BD3E2E12-42DD-40f4-A09A-95A50C58304B")] public interface IServiceCall { void OnCall(); } [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("8165B19E-8D3A-4d0b-80C8-97DE310DB583")] public interface IServicedComponentInfo { void GetComponentInfo(ref int infoMask, out string[] infoArray); } internal interface ISharedProperty { object Value { get; set; } } internal interface ISharedPropertyGroup { ISharedProperty CreateProperty(string name, out bool fExists); ISharedProperty CreatePropertyByPosition(int position, out bool fExists); ISharedProperty Property(string name); ISharedProperty PropertyByPosition(int position); } [ComImport] [Guid("0FB15084-AF41-11CE-BD2B-204C4F4F5020")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface ITransaction { void Abort(ref BOID pboidReason, int fRetaining, int fAsync); void Commit(int fRetaining, int grfTC, int grfRM); void GetTransactionInfo(out XACTTRANSINFO pinfo); } [Serializable] public enum ImpersonationLevelOption { Anonymous = 1, Default = 0, Delegate = 4, Identify = 2, Impersonate = 3 } [Serializable] [ComVisible(false)] public enum InheritanceOption { Inherit, Ignore } [Serializable] [Flags] public enum InstallationFlags { Configure = 0x400, ConfigureComponentsOnly = 0x10, CreateTargetApplication = 2, Default = 0, ExpectExistingTypeLib = 1, FindOrCreateTargetApplication = 4, Install = 0x200, ReconfigureExistingApplication = 8, Register = 0x100, ReportWarningsToConsole = 0x20 } [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)] [ComVisible(false)] public sealed class InterfaceQueuingAttribute : Attribute { private bool enabled; private string interfaceName; public bool Enabled { get { return enabled; } set { enabled = value; } } public string Interface { get { return interfaceName; } set { interfaceName = value; } } public InterfaceQueuingAttribute() : this(enabled: true) { } public InterfaceQueuingAttribute(bool enabled) { this.enabled = enabled; interfaceName = null; } } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class JustInTimeActivationAttribute : Attribute { private bool val; public bool Value => val; public JustInTimeActivationAttribute() : this(val: true) { } public JustInTimeActivationAttribute(bool val) { this.val = val; } } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class LoadBalancingSupportedAttribute : Attribute { private bool val; public bool Value => val; public LoadBalancingSupportedAttribute() : this(val: true) { } public LoadBalancingSupportedAttribute(bool val) { this.val = val; } } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class MustRunInClientContextAttribute : Attribute { private bool val; public bool Value => val; public MustRunInClientContextAttribute() : this(val: true) { } public MustRunInClientContextAttribute(bool val) { this.val = val; } } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class ObjectPoolingAttribute : Attribute, IConfigurationAttribute { private int creationTimeout; private bool enabled; private int minPoolSize; private int maxPoolSize; public int CreationTimeout { get { return creationTimeout; } set { creationTimeout = value; } } public bool Enabled { get { return enabled; } set { enabled = value; } } public int MaxPoolSize { get { return maxPoolSize; } set { maxPoolSize = value; } } public int MinPoolSize { get { return minPoolSize; } set { minPoolSize = value; } } public ObjectPoolingAttribute() : this(enable: true) { } public ObjectPoolingAttribute(bool enable) { enabled = enable; } public ObjectPoolingAttribute(int minPoolSize, int maxPoolSize) : this(enable: true, minPoolSize, maxPoolSize) { } public ObjectPoolingAttribute(bool enable, int minPoolSize, int maxPoolSize) { enabled = enable; this.minPoolSize = minPoolSize; this.maxPoolSize = maxPoolSize; } [MonoTODO] public bool AfterSaveChanges(Hashtable info) { throw new NotImplementedException(); } [MonoTODO] public bool Apply(Hashtable info) { throw new NotImplementedException(); } [MonoTODO] public bool IsValidTarget(string s) { throw new NotImplementedException(); } } [Serializable] [ComVisible(false)] public enum PartitionOption { Ignore, Inherit, New } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class PrivateComponentAttribute : Attribute { } [Serializable] [ComVisible(false)] public enum PropertyLockMode { Method = 1, SetGet = 0 } [Serializable] [ComVisible(false)] public enum PropertyReleaseMode { Process = 1, Standard = 0 } [Serializable] [Guid("36dcda30-dc3b-4d93-be42-90b2d74c64e7")] public class RegistrationConfig { [MonoTODO] public string Application { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string ApplicationRootDirectory { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string AssemblyFile { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public InstallationFlags InstallationFlags { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string Partition { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string TypeLibrary { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public RegistrationConfig() { throw new NotImplementedException(); } } [Serializable] public sealed class RegistrationErrorInfo { private int errorCode; private string errorString; private string majorRef; private string minorRef; private string name; public int ErrorCode => errorCode; public string ErrorString => errorString; public string MajorRef => majorRef; public string MinorRef => minorRef; public string Name => name; [MonoTODO] internal RegistrationErrorInfo(string name, string majorRef, string minorRef, int errorCode) { this.name = name; this.majorRef = majorRef; this.minorRef = minorRef; this.errorCode = errorCode; } internal RegistrationErrorInfo() { ThrowStub.ThrowNotSupportedException(); } } [Serializable] public sealed class RegistrationException : SystemException { private RegistrationErrorInfo[] errorInfo; public RegistrationErrorInfo[] ErrorInfo => errorInfo; [MonoTODO] public RegistrationException(string msg) : base(msg) { } public RegistrationException() : this("Registration error") { } public RegistrationException(string msg, Exception inner) : base(msg, inner) { } [MonoTODO] public override void GetObjectData(SerializationInfo info, StreamingContext ctx) { throw new NotImplementedException(); } } [Guid("89a86e7b-c229-4008-9baa-2f5c8411d7e0")] public sealed class RegistrationHelper : MarshalByRefObject, IRegistrationHelper { public void InstallAssembly(string assembly, ref string application, ref string tlb, InstallationFlags installFlags) { application = string.Empty; tlb = string.Empty; InstallAssembly(assembly, ref application, null, ref tlb, installFlags); } [MonoTODO] public void InstallAssembly(string assembly, ref string application, string partition, ref string tlb, InstallationFlags installFlags) { throw new NotImplementedException(); } [MonoTODO] public void InstallAssemblyFromConfig([MarshalAs(UnmanagedType.IUnknown)] ref RegistrationConfig regConfig) { throw new NotImplementedException(); } public void UninstallAssembly(string assembly, string application) { UninstallAssembly(assembly, application, null); } [MonoTODO] public void UninstallAssembly(string assembly, string application, string partition) { throw new NotImplementedException(); } [MonoTODO] public void UninstallAssemblyFromConfig([MarshalAs(UnmanagedType.IUnknown)] ref RegistrationConfig regConfig) { throw new NotImplementedException(); } } [Transaction(TransactionOption.RequiresNew)] [Guid("C89AC250-E18A-4FC7-ABD5-B8897B6A78A5")] public sealed class RegistrationHelperTx : ServicedComponent { [MonoTODO] public RegistrationHelperTx() { } [MonoTODO] protected internal override void Activate() { throw new NotImplementedException(); } [MonoTODO] protected internal override void Deactivate() { throw new NotImplementedException(); } public void InstallAssembly(string assembly, ref string application, ref string tlb, InstallationFlags installFlags, object sync) { InstallAssembly(assembly, ref application, null, ref tlb, installFlags, sync); } [MonoTODO] public void InstallAssembly(string assembly, ref string application, string partition, ref string tlb, InstallationFlags installFlags, object sync) { throw new NotImplementedException(); } [MonoTODO] public void InstallAssemblyFromConfig([MarshalAs(UnmanagedType.IUnknown)] ref RegistrationConfig regConfig, object sync) { throw new NotImplementedException(); } [MonoTODO] public bool IsInTransaction() { throw new NotImplementedException(); } public void UninstallAssembly(string assembly, string application, object sync) { UninstallAssembly(assembly, application, null, sync); } [MonoTODO] public void UninstallAssembly(string assembly, string application, string partition, object sync) { throw new NotImplementedException(); } [MonoTODO] public void UninstallAssemblyFromConfig([MarshalAs(UnmanagedType.IUnknown)] ref RegistrationConfig regConfig, object sync) { throw new NotImplementedException(); } } public sealed class ResourcePool { public delegate void TransactionEndDelegate(object resource); [MonoTODO] public ResourcePool(TransactionEndDelegate cb) { } [MonoTODO] public object GetResource() { throw new NotImplementedException(); } [MonoTODO] public bool PutResource(object resource) { throw new NotImplementedException(); } } [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] [ComVisible(false)] public sealed class SecureMethodAttribute : Attribute { } public sealed class SecurityCallContext { public SecurityCallers Callers { [MonoTODO] get { throw new NotImplementedException(); } } public static SecurityCallContext CurrentCall { [MonoTODO] get { throw new NotImplementedException(); } } public SecurityIdentity DirectCaller { [MonoTODO] get { throw new NotImplementedException(); } } public bool IsSecurityEnabled { [MonoTODO] get { throw new NotImplementedException(); } } public int MinAuthenticationLevel { [MonoTODO] get { throw new NotImplementedException(); } } public int NumCallers { [MonoTODO] get { throw new NotImplementedException(); } } public SecurityIdentity OriginalCaller { [MonoTODO] get { throw new NotImplementedException(); } } internal SecurityCallContext() { } internal SecurityCallContext(ISecurityCallContext context) { } [MonoTODO] public bool IsCallerInRole(string role) { throw new NotImplementedException(); } [MonoTODO] public bool IsUserInRole(string user, string role) { throw new NotImplementedException(); } } public sealed class SecurityCallers : IEnumerable { public int Count { [MonoTODO] get { throw new NotImplementedException(); } } public SecurityIdentity this[int idx] { [MonoTODO] get { throw new NotImplementedException(); } } internal SecurityCallers() { } internal SecurityCallers(ISecurityCallersColl collection) { } [MonoTODO] public IEnumerator GetEnumerator() { throw new NotImplementedException(); } } public sealed class SecurityIdentity { public string AccountName { [MonoTODO] get { throw new NotImplementedException(); } } public AuthenticationOption AuthenticationLevel { [MonoTODO] get { throw new NotImplementedException(); } } public int AuthenticationService { [MonoTODO] get { throw new NotImplementedException(); } } public ImpersonationLevelOption ImpersonationLevel { [MonoTODO] get { throw new NotImplementedException(); } } [MonoTODO] internal SecurityIdentity() { } [MonoTODO] internal SecurityIdentity(ISecurityIdentityColl collection) { } } [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = true)] [ComVisible(false)] public sealed class SecurityRoleAttribute : Attribute { private string description; private bool everyone; private string role; public string Description { get { return description; } set { description = value; } } public string Role { get { return role; } set { role = value; } } public bool SetEveryoneAccess { get { return everyone; } set { everyone = value; } } public SecurityRoleAttribute(string role) : this(role, everyone: false) { } public SecurityRoleAttribute(string role, bool everyone) { description = string.Empty; this.everyone = everyone; this.role = role; } } [MonoTODO] [ComVisible(false)] public sealed class ServiceConfig { [MonoTODO] public BindingOption Binding { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public Transaction BringYourOwnSystemTransaction { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public ITransaction BringYourOwnTransaction { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public bool COMTIIntrinsicsEnabled { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public bool IISIntrinsicsEnabled { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public InheritanceOption Inheritance { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public TransactionIsolationLevel IsolationLevel { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public Guid PartitionId { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public PartitionOption PartitionOption { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string SxsDirectory { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string SxsName { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public SxsOption SxsOption { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public SynchronizationOption Synchronization { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public ThreadPoolOption ThreadPool { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string TipUrl { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string TrackingAppName { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string TrackingComponentName { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public bool TrackingEnabled { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public TransactionOption Transaction { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public string TransactionDescription { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public int TransactionTimeout { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MonoTODO] public ServiceConfig() { throw new NotImplementedException(); } } [ComVisible(false)] public sealed class ServiceDomain { private ServiceDomain() { } [MonoTODO] public static void Enter(ServiceConfig cfg) { throw new NotImplementedException(); } [MonoTODO] public static TransactionStatus Leave() { throw new NotImplementedException(); } } [Serializable] public abstract class ServicedComponent : ContextBoundObject, IDisposable, IRemoteDispatch, IServicedComponentInfo { public ServicedComponent() { } [MonoTODO] protected internal virtual void Activate() { throw new NotImplementedException(); } [MonoTODO] protected internal virtual bool CanBePooled() { throw new NotImplementedException(); } [MonoTODO] protected internal virtual void Construct(string s) { throw new NotImplementedException(); } [MonoTODO] protected internal virtual void Deactivate() { throw new NotImplementedException(); } [MonoTODO] public void Dispose() { throw new NotImplementedException(); } [MonoTODO] protected virtual void Dispose(bool disposing) { throw new NotImplementedException(); } [MonoTODO] public static void DisposeObject(ServicedComponent sc) { throw new NotImplementedException(); } [MonoTODO] string IRemoteDispatch.RemoteDispatchAutoDone(string s) { throw new NotImplementedException(); } [MonoTODO] string IRemoteDispatch.RemoteDispatchNotAutoDone(string s) { throw new NotImplementedException(); } [MonoTODO] void IServicedComponentInfo.GetComponentInfo(ref int infoMask, out string[] infoArray) { throw new NotImplementedException(); } } [Serializable] [ComVisible(false)] public sealed class ServicedComponentException : SystemException { public ServicedComponentException() { } public ServicedComponentException(string message) : base(message) { } public ServicedComponentException(string message, Exception innerException) : base(message, innerException) { } } [ComVisible(false)] public sealed class SharedProperty { private ISharedProperty property; public object Value { get { return property.Value; } set { property.Value = value; } } internal SharedProperty(ISharedProperty property) { this.property = property; } internal SharedProperty() { ThrowStub.ThrowNotSupportedException(); } } [ComVisible(false)] public sealed class SharedPropertyGroup { private ISharedPropertyGroup propertyGroup; internal SharedPropertyGroup(ISharedPropertyGroup propertyGroup) { this.propertyGroup = propertyGroup; } public SharedProperty CreateProperty(string name, out bool fExists) { return new SharedProperty(propertyGroup.CreateProperty(name, out fExists)); } public SharedProperty CreatePropertyByPosition(int position, out bool fExists) { return new SharedProperty(propertyGroup.CreatePropertyByPosition(position, out fExists)); } public SharedProperty Property(string name) { return new SharedProperty(propertyGroup.Property(name)); } public SharedProperty PropertyByPosition(int position) { return new SharedProperty(propertyGroup.PropertyByPosition(position)); } internal SharedPropertyGroup() { ThrowStub.ThrowNotSupportedException(); } } [ComVisible(false)] public sealed class SharedPropertyGroupManager : IEnumerable { [MonoTODO] public SharedPropertyGroup CreatePropertyGroup(string name, ref PropertyLockMode dwIsoMode, ref PropertyReleaseMode dwRelMode, out bool fExist) { throw new NotImplementedException(); } [MonoTODO] public IEnumerator GetEnumerator() { throw new NotImplementedException(); } [MonoTODO] public SharedPropertyGroup Group(string name) { throw new NotImplementedException(); } } [Serializable] [ComVisible(false)] public enum SxsOption { Ignore, Inherit, New } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class SynchronizationAttribute : Attribute { private SynchronizationOption val; public SynchronizationOption Value => val; public SynchronizationAttribute() : this(SynchronizationOption.Required) { } public SynchronizationAttribute(SynchronizationOption val) { this.val = val; } } [Serializable] public enum SynchronizationOption { Disabled = 0, NotSupported = 1, Required = 3, RequiresNew = 4, Supported = 2 } [Serializable] [ComVisible(false)] public enum ThreadPoolOption { None, Inherit, STA, MTA } [AttributeUsage(AttributeTargets.Class)] [ComVisible(false)] public sealed class TransactionAttribute : Attribute { private TransactionIsolationLevel isolation; private int timeout; private TransactionOption val; public TransactionIsolationLevel Isolation { get { return isolation; } set { isolation = value; } } public int Timeout { get { return timeout; } set { timeout = value; } } public TransactionOption Value => val; public TransactionAttribute() : this(TransactionOption.Required) { } public TransactionAttribute(TransactionOption val) { isolation = TransactionIsolationLevel.Serializable; timeout = -1; this.val = val; } } [Serializable] public enum TransactionIsolationLevel { Any = 0, ReadCommitted = 2, ReadUncommitted = 1, RepeatableRead = 3, Serializable = 4 } [Serializable] public enum TransactionOption { Disabled, NotSupported, Supported, Required, RequiresNew } [Serializable] [ComVisible(false)] public enum TransactionStatus { Commited, LocallyOk, NoTransaction, Aborting, Aborted } [Serializable] [ComVisible(false)] public enum TransactionVote { Abort = 1, Commit = 0 } [ComVisible(false)] public struct XACTTRANSINFO { public int grfRMSupported; public int grfRMSupportedRetaining; public int grfTCSupported; public int grfTCSupportedRetaining; public int isoFlags; public int isoLevel; public BOID uow; } } namespace System.EnterpriseServices.Internal { [Guid("ef24f689-14f8-4d92-b4af-d7b1f0e70fd4")] public class AppDomainHelper { [MonoTODO] public AppDomainHelper() { throw new NotImplementedException(); } [MonoTODO] ~AppDomainHelper() { throw new NotImplementedException(); } } [Guid("458aa3b5-265a-4b75-bc05-9bea4630cf18")] public class AssemblyLocator : MarshalByRefObject { [MonoTODO] public AssemblyLocator() { throw new NotImplementedException(); } } public class ClientRemotingConfig { [MonoTODO] public ClientRemotingConfig() { throw new NotImplementedException(); } [MonoTODO] public static bool Write(string DestinationDirectory, string VRoot, string BaseUrl, string AssemblyName, string TypeName, string ProgId, string Mode, string Transport) { throw new NotImplementedException(); } } [Guid("ecabafd1-7f19-11d2-978e-0000f8757e2a")] public class ClrObjectFactory : IClrObjectFactory { [MonoTODO] public ClrObjectFactory() { throw new NotImplementedException(); } [MonoTODO] public object CreateFromAssembly(string AssemblyName, string TypeName, string Mode) { throw new NotImplementedException(); } [MonoTODO] public object CreateFromMailbox(string Mailbox, string Mode) { throw new NotImplementedException(); } [MonoTODO] public object CreateFromVroot(string VrootUrl, string Mode) { throw new NotImplementedException(); } [MonoTODO] public object CreateFromWsdl(string WsdlUrl, string Mode) { throw new NotImplementedException(); } } [Guid("3b0398c9-7812-4007-85cb-18c771f2206f")] public class ComManagedImportUtil : IComManagedImportUtil { [MonoTODO] public ComManagedImportUtil() { throw new NotImplementedException(); } [MonoTODO] public void GetComponentInfo(string assemblyPath, out string numComponents, out string componentInfo) { throw new NotImplementedException(); } [MonoTODO] public void InstallAssembly(string asmpath, string parname, string appname) { throw new NotImplementedException(); } } public class ComSoapPublishError { [MonoTODO] public ComSoapPublishError() { throw new NotImplementedException(); } [MonoTODO] public static void Report(string s) { throw new NotImplementedException(); } } [Guid("d8013ff1-730b-45e2-ba24-874b7242c425")] public class GenerateMetadata : IComSoapMetadata { [MonoTODO] public GenerateMetadata() { throw new NotImplementedException(); } [MonoTODO] public string Generate(string strSrcTypeLib, string outPath) { throw new NotImplementedException(); } [MonoTODO] public string GenerateMetaData(string strSrcTypeLib, string outPath, byte[] PublicKey, StrongNameKeyPair KeyPair) { throw new NotImplementedException(); } [MonoTODO] public string GenerateSigned(string strSrcTypeLib, string outPath, bool InstallGac, out string Error) { throw new NotImplementedException(); } [MonoTODO] public static int SearchPath(string path, string fileName, string extension, int numBufferChars, string buffer, int[] filePart) { throw new NotImplementedException(); } } [Guid("ecabafd2-7f19-11d2-978e-0000f8757e2a")] public interface IClrObjectFactory { [DispId(1)] [return: MarshalAs(UnmanagedType.IDispatch)] object CreateFromAssembly(string assembly, string type, string mode); [DispId(4)] [return: MarshalAs(UnmanagedType.IDispatch)] object CreateFromMailbox(string Mailbox, string Mode); [DispId(2)] [return: MarshalAs(UnmanagedType.IDispatch)] object CreateFromVroot(string VrootUrl, string Mode); [DispId(3)] [return: MarshalAs(UnmanagedType.IDispatch)] object CreateFromWsdl(string WsdlUrl, string Mode); } [Guid("c3f8f66b-91be-4c99-a94f-ce3b0a951039")] public interface IComManagedImportUtil { [DispId(4)] void GetComponentInfo([MarshalAs(UnmanagedType.BStr)] string assemblyPath, [MarshalAs(UnmanagedType.BStr)] out string numComponents, [MarshalAs(UnmanagedType.BStr)] out string componentInfo); [DispId(5)] void InstallAssembly([MarshalAs(UnmanagedType.BStr)] string filename, [MarshalAs(UnmanagedType.BStr)] string parname, [MarshalAs(UnmanagedType.BStr)] string appname); } [Guid("d8013ef0-730b-45e2-ba24-874b7242c425")] public interface IComSoapIISVRoot { [DispId(1)] void Create([MarshalAs(UnmanagedType.BStr)] string RootWeb, [MarshalAs(UnmanagedType.BStr)] string PhysicalDirectory, [MarshalAs(UnmanagedType.BStr)] string VirtualDirectory, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(2)] void Delete([MarshalAs(UnmanagedType.BStr)] string RootWeb, [MarshalAs(UnmanagedType.BStr)] string PhysicalDirectory, [MarshalAs(UnmanagedType.BStr)] string VirtualDirectory, [MarshalAs(UnmanagedType.BStr)] out string Error); } [Guid("d8013ff0-730b-45e2-ba24-874b7242c425")] public interface IComSoapMetadata { [DispId(1)] [return: MarshalAs(UnmanagedType.BStr)] string Generate([MarshalAs(UnmanagedType.BStr)] string SrcTypeLibFileName, [MarshalAs(UnmanagedType.BStr)] string OutPath); [DispId(2)] [return: MarshalAs(UnmanagedType.BStr)] string GenerateSigned([MarshalAs(UnmanagedType.BStr)] string SrcTypeLibFileName, [MarshalAs(UnmanagedType.BStr)] string OutPath, [MarshalAs(UnmanagedType.Bool)] bool InstallGac, [MarshalAs(UnmanagedType.BStr)] out string Error); } [Guid("d8013eee-730b-45e2-ba24-874b7242c425")] public interface IComSoapPublisher { [DispId(6)] void CreateMailBox([MarshalAs(UnmanagedType.BStr)] string RootMailServer, [MarshalAs(UnmanagedType.BStr)] string MailBox, [MarshalAs(UnmanagedType.BStr)] out string SmtpName, [MarshalAs(UnmanagedType.BStr)] out string Domain, [MarshalAs(UnmanagedType.BStr)] out string PhysicalPath, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(4)] void CreateVirtualRoot([MarshalAs(UnmanagedType.BStr)] string Operation, [MarshalAs(UnmanagedType.BStr)] string FullUrl, [MarshalAs(UnmanagedType.BStr)] out string BaseUrl, [MarshalAs(UnmanagedType.BStr)] out string VirtualRoot, [MarshalAs(UnmanagedType.BStr)] out string PhysicalPath, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(7)] void DeleteMailBox([MarshalAs(UnmanagedType.BStr)] string RootMailServer, [MarshalAs(UnmanagedType.BStr)] string MailBox, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(5)] void DeleteVirtualRoot([MarshalAs(UnmanagedType.BStr)] string RootWebServer, [MarshalAs(UnmanagedType.BStr)] string FullUrl, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(13)] void GacInstall([MarshalAs(UnmanagedType.BStr)] string AssemblyPath); [DispId(14)] void GacRemove([MarshalAs(UnmanagedType.BStr)] string AssemblyPath); [DispId(15)] void GetAssemblyNameForCache([MarshalAs(UnmanagedType.BStr)] string TypeLibPath, [MarshalAs(UnmanagedType.BStr)] out string CachePath); [DispId(10)] [return: MarshalAs(UnmanagedType.BStr)] string GetTypeNameFromProgId([MarshalAs(UnmanagedType.BStr)] string AssemblyPath, [MarshalAs(UnmanagedType.BStr)] string ProgId); [DispId(9)] void ProcessClientTlb([MarshalAs(UnmanagedType.BStr)] string ProgId, [MarshalAs(UnmanagedType.BStr)] string SrcTlbPath, [MarshalAs(UnmanagedType.BStr)] string PhysicalPath, [MarshalAs(UnmanagedType.BStr)] string VRoot, [MarshalAs(UnmanagedType.BStr)] string BaseUrl, [MarshalAs(UnmanagedType.BStr)] string Mode, [MarshalAs(UnmanagedType.BStr)] string Transport, [MarshalAs(UnmanagedType.BStr)] out string AssemblyName, [MarshalAs(UnmanagedType.BStr)] out string TypeName, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(8)] void ProcessServerTlb([MarshalAs(UnmanagedType.BStr)] string ProgId, [MarshalAs(UnmanagedType.BStr)] string SrcTlbPath, [MarshalAs(UnmanagedType.BStr)] string PhysicalPath, [MarshalAs(UnmanagedType.BStr)] string Operation, [MarshalAs(UnmanagedType.BStr)] out string AssemblyName, [MarshalAs(UnmanagedType.BStr)] out string TypeName, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(11)] void RegisterAssembly([MarshalAs(UnmanagedType.BStr)] string AssemblyPath); [DispId(12)] void UnRegisterAssembly([MarshalAs(UnmanagedType.BStr)] string AssemblyPath); } [Guid("d8013ef1-730b-45e2-ba24-874b7242c425")] public class IISVirtualRoot : IComSoapIISVRoot { [MonoTODO] public IISVirtualRoot() { throw new NotImplementedException(); } [MonoTODO] public void Create(string RootWeb, string inPhysicalDirectory, string VirtualDirectory, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void Delete(string RootWeb, string PhysicalDirectory, string VirtualDirectory, out string Error) { throw new NotImplementedException(); } } [Guid("6261e4b5-572a-4142-a2f9-1fe1a0c97097")] public interface IServerWebConfig { [DispId(1)] void AddElement([MarshalAs(UnmanagedType.BStr)] string FilePath, [MarshalAs(UnmanagedType.BStr)] string AssemblyName, [MarshalAs(UnmanagedType.BStr)] string TypeName, [MarshalAs(UnmanagedType.BStr)] string ProgId, [MarshalAs(UnmanagedType.BStr)] string Mode, [MarshalAs(UnmanagedType.BStr)] out string Error); [DispId(2)] void Create([MarshalAs(UnmanagedType.BStr)] string FilePath, [MarshalAs(UnmanagedType.BStr)] string FileRootName, [MarshalAs(UnmanagedType.BStr)] out string Error); } [Guid("E7F0F021-9201-47e4-94DA-1D1416DEC27A")] public interface ISoapClientImport { [DispId(1)] void ProcessClientTlbEx([MarshalAs(UnmanagedType.BStr)] string progId, [MarshalAs(UnmanagedType.BStr)] string virtualRoot, [MarshalAs(UnmanagedType.BStr)] string baseUrl, [MarshalAs(UnmanagedType.BStr)] string authentication, [MarshalAs(UnmanagedType.BStr)] string assemblyName, [MarshalAs(UnmanagedType.BStr)] string typeName); } [Guid("1E7BA9F7-21DB-4482-929E-21BDE2DFE51C")] public interface ISoapServerTlb { [DispId(1)] void AddServerTlb([MarshalAs(UnmanagedType.BStr)] string progId, [MarshalAs(UnmanagedType.BStr)] string classId, [MarshalAs(UnmanagedType.BStr)] string interfaceId, [MarshalAs(UnmanagedType.BStr)] string srcTlbPath, [MarshalAs(UnmanagedType.BStr)] string rootWebServer, [MarshalAs(UnmanagedType.BStr)] string baseUrl, [MarshalAs(UnmanagedType.BStr)] string virtualRoot, [MarshalAs(UnmanagedType.BStr)] string clientActivated, [MarshalAs(UnmanagedType.BStr)] string wellKnown, [MarshalAs(UnmanagedType.BStr)] string discoFile, [MarshalAs(UnmanagedType.BStr)] string operation, [MarshalAs(UnmanagedType.BStr)] out string assemblyName, [MarshalAs(UnmanagedType.BStr)] out string typeName); [DispId(2)] void DeleteServerTlb([MarshalAs(UnmanagedType.BStr)] string progId, [MarshalAs(UnmanagedType.BStr)] string classId, [MarshalAs(UnmanagedType.BStr)] string interfaceId, [MarshalAs(UnmanagedType.BStr)] string srcTlbPath, [MarshalAs(UnmanagedType.BStr)] string rootWebServer, [MarshalAs(UnmanagedType.BStr)] string baseUrl, [MarshalAs(UnmanagedType.BStr)] string virtualRoot, [MarshalAs(UnmanagedType.BStr)] string operation, [MarshalAs(UnmanagedType.BStr)] string assemblyName, [MarshalAs(UnmanagedType.BStr)] string typeName); } [Guid("A31B6577-71D2-4344-AEDF-ADC1B0DC5347")] public interface ISoapServerVRoot { [DispId(1)] void CreateVirtualRootEx([MarshalAs(UnmanagedType.BStr)] string rootWebServer, [MarshalAs(UnmanagedType.BStr)] string inBaseUrl, [MarshalAs(UnmanagedType.BStr)] string inVirtualRoot, [MarshalAs(UnmanagedType.BStr)] string homePage, [MarshalAs(UnmanagedType.BStr)] string discoFile, [MarshalAs(UnmanagedType.BStr)] string secureSockets, [MarshalAs(UnmanagedType.BStr)] string authentication, [MarshalAs(UnmanagedType.BStr)] string operation, [MarshalAs(UnmanagedType.BStr)] out string baseUrl, [MarshalAs(UnmanagedType.BStr)] out string virtualRoot, [MarshalAs(UnmanagedType.BStr)] out string physicalPath); [DispId(2)] void DeleteVirtualRootEx([MarshalAs(UnmanagedType.BStr)] string rootWebServer, [MarshalAs(UnmanagedType.BStr)] string baseUrl, [MarshalAs(UnmanagedType.BStr)] string virtualRoot); [DispId(3)] void GetVirtualRootStatus([MarshalAs(UnmanagedType.BStr)] string rootWebServer, [MarshalAs(UnmanagedType.BStr)] string inBaseUrl, [MarshalAs(UnmanagedType.BStr)] string inVirtualRoot, [MarshalAs(UnmanagedType.BStr)] out string exists, [MarshalAs(UnmanagedType.BStr)] out string secureSockets, [MarshalAs(UnmanagedType.BStr)] out string windowsAuth, [MarshalAs(UnmanagedType.BStr)] out string anonymous, [MarshalAs(UnmanagedType.BStr)] out string homePage, [MarshalAs(UnmanagedType.BStr)] out string discoFile, [MarshalAs(UnmanagedType.BStr)] out string physicalPath, [MarshalAs(UnmanagedType.BStr)] out string baseUrl, [MarshalAs(UnmanagedType.BStr)] out string virtualRoot); } [Guid("5AC4CB7E-F89F-429b-926B-C7F940936BF4")] public interface ISoapUtility { [DispId(2)] void GetServerBinPath([MarshalAs(UnmanagedType.BStr)] string rootWebServer, [MarshalAs(UnmanagedType.BStr)] string inBaseUrl, [MarshalAs(UnmanagedType.BStr)] string inVirtualRoot, [MarshalAs(UnmanagedType.BStr)] out string binPath); [DispId(1)] void GetServerPhysicalPath([MarshalAs(UnmanagedType.BStr)] string rootWebServer, [MarshalAs(UnmanagedType.BStr)] string inBaseUrl, [MarshalAs(UnmanagedType.BStr)] string inVirtualRoot, [MarshalAs(UnmanagedType.BStr)] out string physicalPath); [DispId(3)] void Present(); } [Guid("d8013eef-730b-45e2-ba24-874b7242c425")] public class Publish : IComSoapPublisher { [MonoTODO] public Publish() { throw new NotImplementedException(); } [MonoTODO] public void CreateMailBox(string RootMailServer, string MailBox, out string SmtpName, out string Domain, out string PhysicalPath, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void CreateVirtualRoot(string Operation, string FullUrl, out string BaseUrl, out string VirtualRoot, out string PhysicalPath, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void DeleteMailBox(string RootMailServer, string MailBox, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void DeleteVirtualRoot(string RootWebServer, string FullUrl, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void GacInstall(string AssemblyPath) { throw new NotImplementedException(); } [MonoTODO] public void GacRemove(string AssemblyPath) { throw new NotImplementedException(); } [MonoTODO] public void GetAssemblyNameForCache(string TypeLibPath, out string CachePath) { throw new NotImplementedException(); } [MonoTODO] public static string GetClientPhysicalPath(bool CreateDir) { throw new NotImplementedException(); } [MonoTODO] public string GetTypeNameFromProgId(string AssemblyPath, string ProgId) { throw new NotImplementedException(); } [MonoTODO] public static void ParseUrl(string FullUrl, out string BaseUrl, out string VirtualRoot) { throw new NotImplementedException(); } [MonoTODO] public void ProcessClientTlb(string ProgId, string SrcTlbPath, string PhysicalPath, string VRoot, string BaseUrl, string Mode, string Transport, out string AssemblyName, out string TypeName, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void ProcessServerTlb(string ProgId, string SrcTlbPath, string PhysicalPath, string Operation, out string strAssemblyName, out string TypeName, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void RegisterAssembly(string AssemblyPath) { throw new NotImplementedException(); } [MonoTODO] public void UnRegisterAssembly(string AssemblyPath) { throw new NotImplementedException(); } } public class ServerWebConfig : IServerWebConfig { [MonoTODO] public ServerWebConfig() { throw new NotImplementedException(); } [MonoTODO] public void AddElement(string FilePath, string AssemblyName, string TypeName, string ProgId, string WkoMode, out string Error) { throw new NotImplementedException(); } [MonoTODO] public void Create(string FilePath, string FilePrefix, out string Error) { throw new NotImplementedException(); } } [Guid("346D5B9F-45E1-45c0-AADF-1B7D221E9063")] public sealed class SoapClientImport : ISoapClientImport { [MonoTODO] public SoapClientImport() { throw new NotImplementedException(); } [MonoTODO] public void ProcessClientTlbEx(string progId, string virtualRoot, string baseUrl, string authentication, string assemblyName, string typeName) { throw new NotImplementedException(); } } [Guid("F6B6768F-F99E-4152-8ED2-0412F78517FB")] public sealed class SoapServerTlb : ISoapServerTlb { [MonoTODO] public SoapServerTlb() { throw new NotImplementedException(); } [MonoTODO] public void AddServerTlb(string progId, string classId, string interfaceId, string srcTlbPath, string rootWebServer, string inBaseUrl, string inVirtualRoot, string clientActivated, string wellKnown, string discoFile, string operation, out string strAssemblyName, out string typeName) { throw new NotImplementedException(); } [MonoTODO] public void DeleteServerTlb(string progId, string classId, string interfaceId, string srcTlbPath, string rootWebServer, string baseUrl, string virtualRoot, string operation, string assemblyName, string typeName) { throw new NotImplementedException(); } } [Guid("CAA817CC-0C04-4d22-A05C-2B7E162F4E8F")] public sealed class SoapServerVRoot : ISoapServerVRoot { [MonoTODO] public SoapServerVRoot() { throw new NotImplementedException(); } [MonoTODO] public void CreateVirtualRootEx(string rootWebServer, string inBaseUrl, string inVirtualRoot, string homePage, string discoFile, string secureSockets, string authentication, string operation, out string baseUrl, out string virtualRoot, out string physicalPath) { throw new NotImplementedException(); } [MonoTODO] public void DeleteVirtualRootEx(string rootWebServer, string inBaseUrl, string inVirtualRoot) { throw new NotImplementedException(); } [MonoTODO] public void GetVirtualRootStatus(string RootWebServer, string inBaseUrl, string inVirtualRoot, out string Exists, out string SSL, out string WindowsAuth, out string Anonymous, out string HomePage, out string DiscoFile, out string PhysicalPath, out string BaseUrl, out string VirtualRoot) { throw new NotImplementedException(); } } [Guid("5F9A955F-AA55-4127-A32B-33496AA8A44E")] public sealed class SoapUtility : ISoapUtility { [MonoTODO] public SoapUtility() { throw new NotImplementedException(); } [MonoTODO] public void GetServerBinPath(string rootWebServer, string inBaseUrl, string inVirtualRoot, out string binPath) { throw new NotImplementedException(); } [MonoTODO] public void GetServerPhysicalPath(string rootWebServer, string inBaseUrl, string inVirtualRoot, out string physicalPath) { throw new NotImplementedException(); } [MonoTODO] public void Present() { throw new NotImplementedException(); } } } namespace System.EnterpriseServices.CompensatingResourceManager { [AttributeUsage(AttributeTargets.Assembly)] [ComVisible(false)] [ProgId("System.EnterpriseServices.Crm.ApplicationCrmEnabledAttribute")] public sealed class ApplicationCrmEnabledAttribute : Attribute { private bool val; public bool Value => val; public ApplicationCrmEnabledAttribute() { val = true; } public ApplicationCrmEnabledAttribute(bool val) { this.val = val; } } public sealed class Clerk { public int LogRecordCount { [MonoTODO] get { throw new NotImplementedException(); } } public string TransactionUOW { [MonoTODO] get { throw new NotImplementedException(); } } [MonoTODO] public Clerk(string compensator, string description, CompensatorOptions flags) { throw new NotImplementedException(); } [MonoTODO] public Clerk(Type compensator, string description, CompensatorOptions flags) { throw new NotImplementedException(); } [MonoTODO] ~Clerk() { throw new NotImplementedException(); } [MonoTODO] public void ForceLog() { throw new NotImplementedException(); } [MonoTODO] public void ForceTransactionToAbort() { throw new NotImplementedException(); } [MonoTODO] public void ForgetLogRecord() { throw new NotImplementedException(); } [MonoTODO] public void WriteLogRecord(object record) { throw new NotImplementedException(); } } public sealed class ClerkInfo { [MonoTODO] public string ActivityId { get { throw new NotImplementedException(); } } [MonoTODO] public Clerk Clerk { get { throw new NotImplementedException(); } } [MonoTODO] public string Compensator { get { throw new NotImplementedException(); } } [MonoTODO] public string Description { get { throw new NotImplementedException(); } } [MonoTODO] public string InstanceId { get { throw new NotImplementedException(); } } [MonoTODO] public string TransactionUOW { get { throw new NotImplementedException(); } } [MonoTODO] ~ClerkInfo() { throw new NotImplementedException(); } internal ClerkInfo() { } } public sealed class ClerkMonitor : IEnumerable { [MonoTODO] public int Count { get { throw new NotImplementedException(); } } [MonoTODO] public ClerkInfo this[string index] { get { throw new NotImplementedException(); } } [MonoTODO] public ClerkInfo this[int index] { get { throw new NotImplementedException(); } } [MonoTODO] ~ClerkMonitor() { } [MonoTODO] public ClerkMonitor() { throw new NotImplementedException(); } [MonoTODO] public IEnumerator GetEnumerator() { throw new NotImplementedException(); } [MonoTODO] public void Populate() { throw new NotImplementedException(); } } public class Compensator : ServicedComponent { public Clerk Clerk { [MonoTODO] get { throw new NotImplementedException(); } } [MonoTODO] public Compensator() { throw new NotImplementedException(); } [MonoTODO] public virtual bool AbortRecord(LogRecord rec) { throw new NotImplementedException(); } [MonoTODO] public virtual void BeginAbort(bool fRecovery) { throw new NotImplementedException(); } [MonoTODO] public virtual void BeginCommit(bool fRecovery) { throw new NotImplementedException(); } [MonoTODO] public virtual void BeginPrepare() { throw new NotImplementedException(); } [MonoTODO] public virtual bool CommitRecord(LogRecord rec) { throw new NotImplementedException(); } [MonoTODO] public virtual void EndAbort() { throw new NotImplementedException(); } [MonoTODO] public virtual void EndCommit() { throw new NotImplementedException(); } [MonoTODO] public virtual bool EndPrepare() { throw new NotImplementedException(); } [MonoTODO] public virtual bool PrepareRecord(LogRecord rec) { throw new NotImplementedException(); } } [Serializable] [Flags] public enum CompensatorOptions { PreparePhase = 1, CommitPhase = 2, AbortPhase = 4, AllPhases = 7, FailIfInDoubtsRemain = 0x10 } public sealed class LogRecord { private LogRecordFlags flags; private object record; private int sequence; public LogRecordFlags Flags => flags; public object Record => record; public int Sequence => sequence; [MonoTODO] internal LogRecord() { } [MonoTODO] internal LogRecord(_LogRecord logRecord) { flags = (LogRecordFlags)logRecord.dwCrmFlags; sequence = logRecord.dwSequenceNumber; record = logRecord.blobUserData; } } internal struct _LogRecord { public int dwCrmFlags; public int dwSequenceNumber; public object blobUserData; } [Serializable] [Flags] public enum LogRecordFlags { ForgetTarget = 1, WrittenDuringPrepare = 2, WrittenDuringCommit = 4, WrittenDuringAbort = 8, WrittenDurringRecovery = 0x10, WrittenDuringReplay = 0x20, ReplayInProgress = 0x40 } [Serializable] public enum TransactionState { Active, Committed, Aborted, Indoubt } } namespace Unity { internal sealed class ThrowStub : ObjectDisposedException { public static void ThrowNotSupportedException() { throw new PlatformNotSupportedException(); } } }