Prajna


DistributedFunctionStoreAsync

Distributed function store with Async interface.

Instance members

Instance memberDescription
RegisterAction(name, act)
Signature: (name:string * act:('T -> Task)) -> IDisposable
Type parameters: 'T

Register an action Action<'T> name of the action, for debugging purpose An action of type Action<'T> to be registered

RegisterAction(...)
Signature: (name:string * capacity:int * privateID:Guid * domainID:Guid * act:('T -> Task) * bReload:bool) -> IDisposable
Type parameters: 'T

Register an action Action<'T> name of the action, for debugging purpose Concurrency level, if larger than 1, multiple action can be executed at the same time, if less than or equal to 0, no capacity control is exercised private ID of the provider ID of the particular function/action An action of type Action<'T> to be registered Whether allows Action reloading. If bReload is false, Prajna will throw an exception if an item of same name already exists in contract store.

RegisterFunction(name, func)
Signature: (name:string * func:(unit -> Task<'TResult>)) -> IDisposable
Type parameters: 'TResult

Register a function Func<'TResult> name of the function A function of type Func<'TResult> to be registered

RegisterFunction(...)
Signature: (name:string * capacity:int * privateID:Guid * domainID:Guid * func:(unit -> Task<'TResult>) * bReload:bool) -> IDisposable
Type parameters: 'TResult

Register a function Func<'TResult> name of the action Concurrency level, if larger than 1, multiple action can be executed at the same time, if less than or equal to 0, no capacity control is exercised private ID of the provider ID of the particular function/action A function of type Func<'T,'TResult> to be registered Whether allows Action reloading. If bReload is false, Prajna will throw an exception if an item of same name already exists in contract store.

RegisterFunction(name, func)
Signature: (name:string * func:('T -> Task<'TResult>)) -> IDisposable
Type parameters: 'T, 'TResult

Register as a function Func<'T,'TResult> name of the action A function of type Func<'T,'TResult> to be registered

RegisterFunction(...)
Signature: (name:string * capacity:int * privateID:Guid * domainID:Guid * func:('T -> Task<'TResult>) * bReload:bool) -> IDisposable
Type parameters: 'T, 'TResult

Register as a function Func<'T,Task<'TResult>> name of the action Concurrency level, if larger than 1, multiple action can be executed at the same time, if less than or equal to 0, no capacity control is exercised private ID of the provider ID of the particular function/action A function of type Func<'T,'TResult> to be registered Whether allows Action reloading. If bReload is false, Prajna will throw an exception if an item of same name already exists in contract store.

RegisterUnitAction(name, act)
Signature: (name:string * act:(unit -> Task)) -> IDisposable

Register an action without input and output parameter. name of the action An action to be registered

RegisterUnitAction(...)
Signature: (name:string * capacity:int * privateID:Guid * domainID:Guid * act:(unit -> Task) * bReload:bool) -> IDisposable

Register a task to be executed when called upon. name of the action Concurrency level, if larger than 1, multiple action can be executed at the same time, if less than or equal to 0, no capacity control is exercised private ID of the provider ID of the particular function/action An action of type to be registered Whether allows Action reloading. If bReload is false, Prajna will throw an exception if an item of same name already exists in contract store.

TryImportActionLocal(name)
Signature: name:string -> 'T -> Task
Type parameters: 'T

Try import an action to execution

TryImportFunctionLocal(name)
Signature: name:string -> 'T -> Task<'TResult>
Type parameters: 'T, 'TResult

Try import an action to execution

TryImportFunctionLocal(name)
Signature: name:string -> unit -> Task<'TResult>
Type parameters: 'TResult

Try import a function to execution

TryImportUnitActionLocal(name)
Signature: name:string -> unit -> Task

Try import an action to execution The return signature is () -> Task

Static members

Static memberDescription
Current
Signature: DistributedFunctionStoreAsync

Access the common DistributedFunctionStore for the address space.

Fork me on GitHub