Click or drag to resize

ServiceProcess Class

Represents a process that executes asynchronously inside a ServiceHelper.
Inheritance Hierarchy
SystemObject
  GSF.ServiceProcessServiceProcess

Namespace: GSF.ServiceProcess
Assembly: GSF.ServiceProcess (in GSF.ServiceProcess.dll) Version: 2.4.207-beta
Syntax
public class ServiceProcess : IDisposable, 
	IProvideStatus
View Source

The ServiceProcess type exposes the following members.

Constructors
 NameDescription
Public methodServiceProcess Initializes a new instance of the ServiceProcess class.
Top
Properties
 NameDescription
Public propertyArguments Gets or sets the arguments to be passed in to the ExecutionMethod.
Public propertyCurrentState Gets the current ServiceProcessState.
Public propertyExecutionMethod Gets or sets the Delegate that gets invoked when Start is called.
Public propertyExecutionStartTime Gets the DateTime when execution of ServiceProcess last started.
Public propertyExecutionStopTime Gets the DateTime when execution of ServiceProcess last completed.
Public propertyLastExecutionTime Gets the Time taken by the ServiceProcess during the last execution.
Public propertyName Gets or sets the name of the ServiceProcess.
Public propertyStatus Gets the descriptive status of the ServiceProcess.
Top
Methods
 NameDescription
Public methodAbort Stops the execution of ServiceProcess if it executing.
Public methodDispose Releases all the resources used by the ServiceProcess object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the ServiceProcess and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Releases the unmanaged resources before the ServiceProcess object is reclaimed by GC.
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnStateChanged Raises the StateChanged event.
Public methodStart Starts the execution of ServiceProcess.
Public methodStart(Object) Starts the execution of ServiceProcess.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventStateChanged Occurs when the CurrentState of the ServiceProcess changes.
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