Interface IActorProvider
Allows to thread-safely control collections of actors grouped by schemes.
Namespace: OptimaJet.Workflow.Core.Plugins.BasicsPlugin.ActorProviders
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic interface IActorProvider
Methods
GetAllActors()
Returns a collection of all actors grouped by schemes.
DeclarationIEnumerable<KeyValuePair<string, IEnumerable<string>>> GetAllActors()
Type | Description |
---|---|
IEnumerable<KeyValuePair<string, IEnumerable<string>>> | Collection of all actors grouped by schemes. The keys in a KeyValuePair are scheme codes and the values are collections of actors. |
SetAllActors(IEnumerable<KeyValuePair<string, IEnumerable<string>>>)
Replaces all actors grouped by schemes with a new ones.
Declarationvoid SetAllActors(IEnumerable<KeyValuePair<string, IEnumerable<string>>> schemeActorsPairs)
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<string, IEnumerable<string>>> | schemeActorsPairs | Collection of all actors grouped by schemes. The keys in a KeyValuePair are scheme codes and the values are collections of actors. |
UnionAllActors(IEnumerable<KeyValuePair<string, IEnumerable<string>>>)
Unions actors for each scheme with specified actors from schemaActorsPairs.
Declarationvoid UnionAllActors(IEnumerable<KeyValuePair<string, IEnumerable<string>>> schemeActorsPairs)
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<string, IEnumerable<string>>> | schemeActorsPairs | Collection of all actors grouped by schemes. The keys in a KeyValuePair are scheme codes and the values are collections of actors. |
GetActors(string)
Returns a collection of actors bound to the schemeCode.
DeclarationIEnumerable<string> GetActors(string schemeCode)
Type | Name | Description |
---|---|---|
string | schemeCode | The code of the scheme to which the collection of actors is bound. |
Type | Description |
---|---|
IEnumerable<string> | Collection of actor names for the specified schemeCode. |
SetActors(string, IEnumerable<string>)
Replaces the existing collection of actors bound to the specified schemeCode with a new one.
Declarationvoid SetActors(string schemeCode, IEnumerable<string> actors)
Type | Name | Description |
---|---|---|
string | schemeCode | The code of the scheme to which the collection of actors is bound. |
IEnumerable<string> | actors | Collection of actors names. |
AddActor(string, string)
Adds an actor to the collection bound to the schemeCode.
Declarationvoid AddActor(string schemeCode, string actor)
Type | Name | Description |
---|---|---|
string | schemeCode | The code of the scheme to which the collection of actors is bound. |
string | actor | Actor name. |
AddActors(string, IEnumerable<string>)
Adds an actors to the collection bound to the schemeCode.
Declarationvoid AddActors(string schemeCode, IEnumerable<string> actors)
Type | Name | Description |
---|---|---|
string | schemeCode | The code of the scheme to which the collection of actors is bound. |
IEnumerable<string> | actors | Collection of actors names. |
RemoveActor(string, string)
Removes an actor from the collection bound to the schemeCode.
Declarationvoid RemoveActor(string schemeCode, string actor)
Type | Name | Description |
---|---|---|
string | schemeCode | The code of the scheme to which the collection of actors is bound. |
string | actor | Actor name. |
RemoveActors(string, IEnumerable<string>)
Removes an actors from the collection bound to the schemeCode.
Declarationvoid RemoveActors(string schemeCode, IEnumerable<string> actors)
Type | Name | Description |
---|---|---|
string | schemeCode | The code of the scheme to which the collection of actors is bound. |
IEnumerable<string> | actors | Collection of actors names. |
IsActorExist(string, string)
Checks if there is an actor in the collection bound to the schemeCode.
Declarationbool IsActorExist(string schemeCode, string actor)
Type | Name | Description |
---|---|---|
string | schemeCode | The code of the scheme to which the collection of actors is bound. |
string | actor | Actor name. |
Type | Description |
---|---|
bool | Is actor exist in the collection bound to the schemeCode. |