Click or drag to resize

ServiceHostBase Class

Represents the time-series framework service host.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      System.ServiceProcessServiceBase
        GSF.TimeSeriesServiceHostBase

Namespace: GSF.TimeSeries
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.205-beta
Syntax
public class ServiceHostBase : ServiceBase
View Source

The ServiceHostBase type exposes the following members.

Constructors
 NameDescription
Public methodServiceHostBase Creates a new ServiceHostBase.
Public methodServiceHostBase(IContainer) Creates a new ServiceHostBase from specified parameters.
Top
Properties
 NameDescription
Protected propertyActionAdapters Gets reference to the ActionAdapterCollection.
Protected propertyAllAdapters Gets reference to the AllAdaptersCollection.
Public propertyAutoLogIndicates whether to report Start, Stop, Pause, and Continue commands in the event log.
(Inherited from ServiceBase)
Public propertyCanHandlePowerEventGets or sets a value indicating whether the service can handle notifications of computer power status changes.
(Inherited from ServiceBase)
Public propertyCanHandleSessionChangeEventGets or sets a value that indicates whether the service can handle session change events received from a Terminal Server session.
(Inherited from ServiceBase)
Public propertyCanPauseAndContinueGets or sets a value indicating whether the service can be paused and resumed.
(Inherited from ServiceBase)
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
Public propertyCanShutdownGets or sets a value indicating whether the service should be notified when the system is shutting down.
(Inherited from ServiceBase)
Public propertyCanStopGets or sets a value indicating whether the service can be stopped once it has started.
(Inherited from ServiceBase)
Protected propertyConfigurationType Gets the defined system ConfigurationType.
Protected propertyConsoleApplicationName Gets the related remote console application name.
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Protected propertyDataSource Gets the currently loaded system configuration DataSet.
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyEventLogGets an event log you can use to write notification of service command calls, such as Start and Stop, to the Application event log.
(Inherited from ServiceBase)
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyExitCodeGets or sets the exit code for the service.
(Inherited from ServiceBase)
Protected propertyFilterAdapters Gets reference to the FilterAdapterCollection.
Protected propertyInputAdapters Gets reference to the InputAdapterCollection.
Protected propertyNodeID Gets the current node ID.
Protected propertyNodeIDQueryString Gets the current node ID formatted for use in a SQL query string based on ConfigurationType.
Protected propertyOutputAdapters Gets reference to the OutputAdapterCollection.
Protected propertyRemotingServer Gets reference to the TcpServer based remoting server.
Protected propertyServiceHandleGets the service control handle for the service.
(Inherited from ServiceBase)
Protected propertyServiceHelper Gets access to the ServiceHelper.
Public propertyServiceNameGets or sets the short name used to identify the service to the system.
(Inherited from ServiceBase)
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Top
Methods
 NameDescription
Protected methodActionRequestHandler Generic adapter request handler.
Protected methodAuthenticateRequestHandler Attempts to authenticate or re-authenticate to network shares.
Protected methodCacheCurrentConfiguration Caches the current system configuration.
Protected methodConnectionErrorLogExceptionHandler Event handler for processing exceptions encountered while writing entries to the connection log file.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Protected methodDisplayResponseMessage Displays a response message to client requester.
Protected methodDisplayStatusMessage(String, UpdateType) Displays a broadcast message to all subscribed clients.
Protected methodDisplayStatusMessage(String, UpdateType, Boolean) Displays a broadcast message to all subscribed clients.
Protected methodDisplayStatusMessage(String, UpdateType, Object) Displays a broadcast message to all subscribed clients.
Protected methodDisplayStatusMessage(String, UpdateType, Boolean, Object) Displays a broadcast message to all subscribed clients.
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the ServiceHostBase object and optionally releases the managed resources.
(Overrides ServiceBaseDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodErrorLogExceptionHandler Event handler for processing exceptions encountered while writing entries to the error log file.
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetInputMeasurementsRequestHandler Gets adapter input measurements.
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodGetOutputMeasurementsRequestHandler Gets adapter output measurements.
Protected methodGetRequestedAdapter(ClientRequestInfo) Gets requested IAdapter.
Protected methodGetRequestedAdapter(ClientRequestInfo, IAdapterCollection) Gets requested IAdapter and its containing IAdapterCollection.
Protected methodGetRequestedCollection Gets requested IAdapterCollection.
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHealthMonitorProcessHandler Event handler for scheduled health monitor display.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodInitializeRequestHandler Performs initialization or reinitialization of specified adapter or collection.
Public methodInitializeServiceHelper Initializes the service helper.
Protected methodInvokeRequestHandler Invokes specified adapter command.
Protected methodListCommandsRequestHandler Lists possible commands of specified adapter.
Protected methodListRequestHandler Displays status of specified adapter or collection.
Protected methodLogEventRequestHandler Sends remote entry for logging.
Protected methodLogException Logs an exception to the service helper ErrorLogger.
Protected methodLogExceptionHandler Event handler for processing exceptions encountered while writing entries to any log file.
Protected methodManageCertificateHandler Manages the certificate used by the service.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Protected methodOnContinue Handles service continue event.
(Overrides ServiceBaseOnContinue)
Protected methodOnCustomCommandWhen implemented in a derived class, OnCustomCommand(Int32) executes when the Service Control Manager (SCM) passes a custom command to the service. Specifies actions to take when a command with the specified parameter value occurs.
(Inherited from ServiceBase)
Protected methodOnPause Handles service pause event.
(Overrides ServiceBaseOnPause)
Protected methodOnPowerEventWhen implemented in a derived class, executes when the computer's power status has changed. This applies to laptop computers when they go into suspended mode, which is not the same as a system shutdown.
(Inherited from ServiceBase)
Protected methodOnSessionChangeExecutes when a change event is received from a Terminal Server session.
(Inherited from ServiceBase)
Protected methodOnShutdown Handles service shut down event.
(Overrides ServiceBaseOnShutdown)
Protected methodOnStart Handles service start event.
(Overrides ServiceBaseOnStart(String))
Protected methodOnStop Handles service stop event.
(Overrides ServiceBaseOnStop)
Protected methodPingRequestHandler Used to ping a device.
Protected methodPropagateDataSource Handle assignment of data source to Iaon session.
Protected methodRefreshRoutesRequestHandler Recalculates routing tables.
Protected methodReloadConfigRequestHandler Manually reloads system configuration.
Protected methodReportingProcessHandler Event handler for scheduled reporting services.
Public methodRequestAdditionalTimeRequests additional time for a pending operation.
(Inherited from ServiceBase)
Protected methodRestartServiceHandler Attempts to restart the hose service.
Protected methodSendResponse(ClientRequestInfo, Boolean) Sends an actionable response to client.
Protected methodSendResponse(ClientRequestInfo, Boolean, String, Object) Sends an actionable response to client with a formatted message.
Protected methodSendResponseWithAttachment Sends an actionable response to client with a formatted message and attachment.
Public methodServiceMainCallbackRegisters the command handler and starts the service.
(Inherited from ServiceBase)
Protected methodServiceStartedHandler Event handler for service started operation.
Protected methodServiceStartingHandler Event handler for service starting operations.
Protected methodServiceStoppingHandler Event handler for service stopping operation.
Protected methodStartRequestHandler Starts specified adapter.
Protected methodStatusExportProcessHandler Event handler for scheduled adapter status export.
Protected methodStatusLogExceptionHandler Event handler for processing exceptions encountered while writing entries to the status log file.
Public methodStopStops the executing service.
(Inherited from ServiceBase)
Protected methodStopRequestHandler Stops specified adapter.
Protected methodTemporalSupportRequestHandler Determines support for temporal processing from existing adapters.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Protected methodUpdateConfigFileRequestHandler Updates an option in the configuration file.
Top
Events
 NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also