ProviderHost Constructor (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.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly: ProviderFramework (in ProviderFramework.dll)
Syntax
public ProviderHost(
object singletonInstance,
string providerId,
IList<Type> serviceContractInterfaces
)
public:
ProviderHost(
Object^ singletonInstance,
String^ providerId,
IList<Type^>^ serviceContractInterfaces
)
Public Sub New (
singletonInstance As Object,
providerId As String,
serviceContractInterfaces As IList(Of Type)
)
Parameters
singletonInstance
Type: System.ObjectAn object that implements one or more provider contracts.
providerId
Type: System.StringThe identifier of the provider.
serviceContractInterfaces
Type: System.Collections.Generic.IList<Type>The list of provider contracts. If this list is null, the singletonInstance is used.
See Also
ProviderHost Overload
ProviderHost Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace
Return to top