Prajna


ContractStore

ContractStore provides a central location for export/import contract

Constructors

ConstructorDescription
new()
Signature: unit -> ContractStore

Static members

Static memberDescription
ExportAction(name, act, bReload)
Signature: (name:string * act:Action<'T> * bReload:bool) -> unit
Type parameters: 'T

Export an action Action<'T> Name of the action to be exported An action of type Action<'T> to be exported Whether allows Action reloading. If bReload is false, Prajna will throw an exception if an item of same name already exists in contract store.

ExportFunction(name, func, bReload)
Signature: (name:string * func:Func<'TResult> * bReload:bool) -> unit
Type parameters: 'TResult

Export as a function Func<'T,'TResult> Name of the action to be exported A function of type Func<'TResult> to be exported Whether allows Action reloading. If bReload is false, Prajna will throw an exception if an item of same name already exists in contract store.

ExportFunction(name, func, bReload)
Signature: (name:string * func:Func<'T,'TResult> * bReload:bool) -> unit
Type parameters: 'T, 'TResult

Export as a function Func<'T,'TResult> Name of the action to be exported A function of type Func<'T,'TResult> to be exported Whether allows Action reloading. If bReload is false, Prajna will throw an exception if an item of same name already exists in contract store.

ExportFunctionTask(name, func, bReload)
Signature: (name:string * func:Func<Task<'TResult>> * bReload:bool) -> unit
Type parameters: 'TResult

Export as a function that return a Task Func>

ExportFunctionTask(name, func, bReload)
Signature: (name:string * func:Func<'T,Task<'TResult>> * bReload:bool) -> unit
Type parameters: 'T, 'TResult

Export as a function that return a Task Func<'T,Task<'TResult>>

ExportSeqFunction(...)
Signature: (name:string * func:Func<'T,IEnumerable<'TResult>> * serializationLimit:int * bReload:bool) -> unit
Type parameters: 'T, 'TResult

Export as a function Func<'T,seq<'TResult>>, the result can be imported and executed by Prajna data analytical pipeline.

ExportSeqFunction(...)
Signature: (name:string * func:Func<IEnumerable<'TResult>> * serializationLimit:int * bReload:bool) -> unit
Type parameters: 'TResult

Export as a function Func>, the result can be imported and executed by Prajna data analytical pipeline.

ImportAction(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> Action<'T>
Type parameters: 'T

Import a Action from both local & server, with name, input parameter, if successfully imported, the function will be cached for faster reimporting.

ImportFunction(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<'TResult>
Type parameters: 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportFunction(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<'T,'TResult>
Type parameters: 'T, 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportFunctionTask(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<Task<'TResult>>
Type parameters: 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportFunctionTask(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<'T,Task<'TResult>>
Type parameters: 'T, 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportFunctionTaskWithTimeout(...)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<int,Task<'TResult>>
Type parameters: 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportFunctionTaskWithTimeout(...)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<'T,int,Task<'TResult>>
Type parameters: 'T, 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportFunctionWithTimeout(...)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<int,'TResult>
Type parameters: 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportFunctionWithTimeout(...)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<'T,int,'TResult>
Type parameters: 'T, 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportSeqFunction(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<IEnumerable<'TResult>>
Type parameters: 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportSeqFunction(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<'T,IEnumerable<'TResult>>
Type parameters: 'T, 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportSeqFunctionWithTimeout(...)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<int,IEnumerable<'TResult>>
Type parameters: 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

ImportSeqFunctionWithTimeout(...)
Signature: (serverInfo:ContractServersInfo * name:string) -> Func<'T,int,IEnumerable<'TResult>>
Type parameters: 'T, 'TResult

Import a Function from both local & server, with name, input parameter. The function has a timeout to control remote execution behavior. If successfully imported, the function will be cached for faster reimporting.

Fork me on GitHub