Prajna


ContractStore

ContractStore provides a central location for export/import contract

Static members

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

Export an action Action<'T> Name of the action to be exported An action of type 'T -> unit 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:(unit -> '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 unit -> '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:('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 '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:(unit -> Task<'TResult>) * bReload:bool) -> unit
Type parameters: 'TResult

Export as a function that return a Task: unit -> Task<'TResult>

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

Export as a function that return a Task: 'T-> Task<'TResult>

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

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

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

Export as a function 'T -> seq<'TResult>, the result can be imported and executed by Prajna data analytical pipeline. F# cannot overload this function with the form unit -> seq<'TResult>, we hence use name to specify the difference.

ImportAction(serverInfo, name)
Signature: (serverInfo:ContractServersInfo * name:string) -> 'T -> unit
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) -> unit -> '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) -> '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) -> unit -> 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) -> '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) -> 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) -> '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) -> 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) -> '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) -> unit -> 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) -> '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) -> 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) -> '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