ProviderHost Class
Represents a generic host environment for providers.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly: ProviderFramework (in ProviderFramework.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderHost
Syntax
public sealed class ProviderHost : IDisposable
public ref class ProviderHost sealed : IDisposable
Public NotInheritable Class ProviderHost
Implements IDisposable
Constructors
Name | Description | |
---|---|---|
ProviderHost(Object, String) | Initializes a new instance of the ProviderHost class with the specified contract object and identifier. |
|
ProviderHost(Object, String, IList<Type>) | Initializes a new instance of the ProviderHost class with the specified contract object, provider identifier, and optional list of contract objects. |
|
ProviderHost(Type, String) | Initializes a new instance of the ProviderHost class with the specified contract type and provider identifier. |
|
ProviderHost(Type, String, IList<Type>) | Initializes a new instance of the ProviderHost class with the specified contract type, provider identifier, and optional list of contract objects. |
Properties
Name | Description | |
---|---|---|
ProviderId | Gets the identifier for the provider. |
|
ProviderInfo | Gets the ProviderInfo objects that represent where this service is reachable. |
|
ProviderType | Gets the type of the provider. |
|
SingletonInstance | Gets the singleton instance of the hosted service. |
Methods
Name | Description | |
---|---|---|
Abort() | Causes a ProviderHost object to transition immediately from its current state into the closing state. |
|
Disconnect() | Disconnect the host. |
|
Disconnect(TimeSpan) | Disconnect the host within the specified time period. |
|
Dispose() | Releases all of the resources that are used by the ProviderHost object. |
|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Open() | Opens the hosted provider, which makes it available to client applications, and registers the provider with the Provider Registry Service. |
|
Open(TimeSpan) | Opens the hosted provider with the specified timeout value, which makes it available to client applications, and registers the provider with the Provider Registry Service. |
|
ToString() | (Inherited from Object.) |
Remarks
If your provider is running in a Windows service it is recommended that you use the ProviderServiceBase class to host instances of ProviderHost.
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace
Return to top