Share via


ProviderServiceBase Class

 

Provides a generic Windows Service host environment to host ProviderHost objects.

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

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.ServiceProcess.ServiceBase
        Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderServiceBase

Syntax

[CLSCompliantAttribute(true)]
public abstract class ProviderServiceBase : ServiceBase
[CLSCompliantAttribute(true)]
public ref class ProviderServiceBase abstract : ServiceBase
<CLSCompliantAttribute(True)>
Public MustInherit Class ProviderServiceBase
    Inherits ServiceBase

Constructors

Name Description
System_CAPS_protmethod ProviderServiceBase(String)

Initializes a new instance of the ProviderServiceBase class with the specified service name.

System_CAPS_protmethod ProviderServiceBase(String, Boolean)

Initializes a new instance of the ProviderServiceBase class with the specified service information.

System_CAPS_protmethod ProviderServiceBase(String, Boolean, TraceSource)

Initializes a new instance of the ProviderServiceBase class with the specified service information.

System_CAPS_protmethod ProviderServiceBase(String, TraceSource)

Creates a new instance of the ProviderServiceBase object, using the specified service name and tracer.

Properties

Name Description
System_CAPS_pubproperty AutoLog

(Inherited from ServiceBase.)

System_CAPS_pubproperty CanHandlePowerEvent

(Inherited from ServiceBase.)

System_CAPS_pubproperty CanHandleSessionChangeEvent

(Inherited from ServiceBase.)

System_CAPS_pubproperty CanPauseAndContinue

(Inherited from ServiceBase.)

System_CAPS_protproperty CanRaiseEvents

(Inherited from Component.)

System_CAPS_pubproperty CanShutdown

(Inherited from ServiceBase.)

System_CAPS_pubproperty CanStop

(Inherited from ServiceBase.)

System_CAPS_pubproperty Container

(Inherited from Component.)

System_CAPS_protproperty DesignMode

(Inherited from Component.)

System_CAPS_pubproperty EventLog

(Inherited from ServiceBase.)

System_CAPS_protproperty Events

(Inherited from Component.)

System_CAPS_pubproperty ExitCode

(Inherited from ServiceBase.)

System_CAPS_protproperty ServiceHandle

(Inherited from ServiceBase.)

System_CAPS_pubproperty ServiceName

(Inherited from ServiceBase.)

System_CAPS_pubproperty Site

(Inherited from Component.)

System_CAPS_protproperty Tracer

Gets and sets the tracer.

Methods

Name Description
System_CAPS_pubmethod CreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod CreateProviderHosts()

Returns a non-empty list of ProviderHost objects.

System_CAPS_pubmethod Dispose()

(Inherited from Component.)

System_CAPS_protmethod Dispose(Boolean)

(Inherited from ServiceBase.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Component.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod GetService(Type)

(Inherited from Component.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod InitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod OnContinue()

(Inherited from ServiceBase.)

System_CAPS_protmethod OnCustomCommand(Int32)

(Inherited from ServiceBase.)

System_CAPS_protmethod OnPause()

(Inherited from ServiceBase.)

System_CAPS_protmethod OnPowerEvent(PowerBroadcastStatus)

(Inherited from ServiceBase.)

System_CAPS_protmethod OnSessionChange(SessionChangeDescription)

(Inherited from ServiceBase.)

System_CAPS_protmethod OnShutdown()

(Inherited from ServiceBase.)

System_CAPS_protmethod OnStart(String[])

This method is called when the Windows Service is started.(Overrides ServiceBase.OnStart(String[]).)

System_CAPS_protmethod OnStartInner(String[])

Called when the Windows Service is started.

System_CAPS_protmethod OnStop()

This method is called when the Windows Service is stopped.(Overrides ServiceBase.OnStop().)

System_CAPS_pubmethod RequestAdditionalTime(Int32)

Requests additional time for the service.

System_CAPS_pubmethod Stop()

Stops the service.

System_CAPS_pubmethod Stop(Int32)

Stops the service, using the specified exit code.

System_CAPS_pubmethod ToString()

(Inherited from Component.)

Events

Name Description
System_CAPS_pubevent Disposed

(Inherited from Component.)

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