ProviderServiceBase Constructor (String, Boolean, TraceSource)
Initializes a new instance of the ProviderServiceBase class with the specified service information.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly: ProviderFramework (in ProviderFramework.dll)
Syntax
protected ProviderServiceBase(
string serviceName,
bool openAsync,
TraceSource tracer
)
protected:
ProviderServiceBase(
String^ serviceName,
bool openAsync,
TraceSource^ tracer
)
Protected Sub New (
serviceName As String,
openAsync As Boolean,
tracer As TraceSource
)
Parameters
serviceName
Type: System.StringThe name of the Windows Service that is implemented by the new object. This must match the name that is registered with the Service Control Manager.
openAsync
Type: System.Booleantrue causes the Windows Service to immediately report its status as running to the SCM, and call the Open method on the ProviderHost objects (supplied by CreateProviderHosts) on a separate thread; otherwise, false, causes the Windows Service to not report that it is running until the ProviderHost objects have been opened.
tracer
Type: System.Diagnostics.TraceSourceThe tracer.
See Also
ProviderServiceBase Overload
ProviderServiceBase Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace
Return to top