ProviderHost Class

 

Represents a generic host environment for providers.

Namespace:   Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly:  ProviderFramework (in ProviderFramework.dll)

System::Object
  Microsoft.WindowsServerSolutions.Common.ProviderFramework::ProviderHost

public ref class ProviderHost sealed : IDisposable

NameDescription
System_CAPS_pubmethodProviderHost(Object^, String^)

Initializes a new instance of the ProviderHost class with the specified contract object and identifier.

System_CAPS_pubmethodProviderHost(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.

System_CAPS_pubmethodProviderHost(Type^, String^)

Initializes a new instance of the ProviderHost class with the specified contract type and provider identifier.

System_CAPS_pubmethodProviderHost(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.

NameDescription
System_CAPS_pubpropertyProviderId

Gets the identifier for the provider.

System_CAPS_pubpropertyProviderInfo

Gets the ProviderInfo objects that represent where this service is reachable.

System_CAPS_pubpropertyProviderType

Gets the type of the provider.

System_CAPS_pubpropertySingletonInstance

Gets the singleton instance of the hosted service.

NameDescription
System_CAPS_pubmethodAbort()

Causes a ProviderHost object to transition immediately from its current state into the closing state.

System_CAPS_pubmethodDisconnect()

Disconnect the host.

System_CAPS_pubmethodDisconnect(TimeSpan)

Disconnect the host within the specified time period.

System_CAPS_pubmethodDispose()

Releases all of the resources that are used by the ProviderHost object.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodOpen()

Opens the hosted provider, which makes it available to client applications, and registers the provider with the Provider Registry Service.

System_CAPS_pubmethodOpen(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.

System_CAPS_pubmethodToString()

(Inherited from Object.)

If your provider is running in a Windows service it is recommended that you use the ProviderServiceBase class to host instances of ProviderHost.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: