Class ProcessServiceProvider
Represents a class that is responsible for initializing components that are needed to execute processes.
Inheritance
System.Object
ProcessServiceProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public class ProcessServiceProvider : IProcessServiceProvider
Methods
CreateProcessComponentSet(UserConnection, BaseProcessSchema)
Creates component set base on the process schema. Prepares it for work with messages queue.
Declaration
public ProcessComponentSet CreateProcessComponentSet(UserConnection userConnection, BaseProcessSchema schema)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | The user connection. |
BaseProcessSchema | schema | The process schema. |
Returns
Type | Description |
---|---|
ProcessComponentSet | The process component set. |
CreateProcessComponentSet(UserConnection, BaseProcessSchema, IProcessParameterStore)
Creates component set base on the process schema. Prepares it for work with messages queue.
Declaration
public ProcessComponentSet CreateProcessComponentSet(UserConnection userConnection, BaseProcessSchema schema, IProcessParameterStore parameterStore)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | The user connection. |
BaseProcessSchema | schema | The process schema. |
IProcessParameterStore | parameterStore | The store of process paramater values. |
Returns
Type | Description |
---|---|
ProcessComponentSet | The process component set. |
GetInstance()
Initializes a single instance of the ProcessServiceProvider type for the application.
Declaration
public static ProcessServiceProvider GetInstance()
Returns
Type | Description |
---|---|
ProcessServiceProvider |
StartServices(Func<String, UserConnection>)
Starts all the necessary services for the execution of processes.
Declaration
public void StartServices(Func<string, UserConnection> userConnectionFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.String, UserConnection> | userConnectionFactory | The user connection factory method. |
StopServices()
Stops running services and frees up resources.
Declaration
public void StopServices()