Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

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

Syntax
public interface IActorProvider

Methods

GetAllActors()

Returns a collection of all actors grouped by schemes.

Declaration
IEnumerable<KeyValuePair<string, IEnumerable<string>>> GetAllActors()
Returns
TypeDescription
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.

Declaration
void SetAllActors(IEnumerable<KeyValuePair<string, IEnumerable<string>>> schemeActorsPairs)
Parameters
TypeNameDescription
IEnumerable<KeyValuePair<string, IEnumerable<string>>>schemeActorsPairsCollection 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.

Declaration
void UnionAllActors(IEnumerable<KeyValuePair<string, IEnumerable<string>>> schemeActorsPairs)
Parameters
TypeNameDescription
IEnumerable<KeyValuePair<string, IEnumerable<string>>>schemeActorsPairsCollection 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.

Declaration
IEnumerable<string> GetActors(string schemeCode)
Parameters
TypeNameDescription
stringschemeCodeThe code of the scheme to which the collection of actors is bound.
Returns
TypeDescription
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.

Declaration
void SetActors(string schemeCode, IEnumerable<string> actors)
Parameters
TypeNameDescription
stringschemeCodeThe code of the scheme to which the collection of actors is bound.
IEnumerable<string>actorsCollection of actors names.

AddActor(string, string)

Adds an actor to the collection bound to the schemeCode.

Declaration
void AddActor(string schemeCode, string actor)
Parameters
TypeNameDescription
stringschemeCodeThe code of the scheme to which the collection of actors is bound.
stringactorActor name.

AddActors(string, IEnumerable<string>)

Adds an actors to the collection bound to the schemeCode.

Declaration
void AddActors(string schemeCode, IEnumerable<string> actors)
Parameters
TypeNameDescription
stringschemeCodeThe code of the scheme to which the collection of actors is bound.
IEnumerable<string>actorsCollection of actors names.

RemoveActor(string, string)

Removes an actor from the collection bound to the schemeCode.

Declaration
void RemoveActor(string schemeCode, string actor)
Parameters
TypeNameDescription
stringschemeCodeThe code of the scheme to which the collection of actors is bound.
stringactorActor name.

RemoveActors(string, IEnumerable<string>)

Removes an actors from the collection bound to the schemeCode.

Declaration
void RemoveActors(string schemeCode, IEnumerable<string> actors)
Parameters
TypeNameDescription
stringschemeCodeThe code of the scheme to which the collection of actors is bound.
IEnumerable<string>actorsCollection of actors names.

IsActorExist(string, string)

Checks if there is an actor in the collection bound to the schemeCode.

Declaration
bool IsActorExist(string schemeCode, string actor)
Parameters
TypeNameDescription
stringschemeCodeThe code of the scheme to which the collection of actors is bound.
stringactorActor name.
Returns
TypeDescription
boolIs actor exist in the collection bound to the schemeCode.

Extension Methods