Class WasmJobDescriptor
WebAssembly job descriptor factory.
public static class WasmJobDescriptor
- Inheritance
-
WasmJobDescriptor
- Inherited Members
Methods
CreateCommand<TArg>(string, IEnumerable<DeploymentUnit>?, JobExecutionOptions?, IMarshaller<TArg>?, IMarshaller<string>?)
Creates a job descriptor for a WebAssembly command module.
See GenericCommand for details.
public static JobDescriptor<TArg, string> CreateCommand<TArg>(string wasmModuleFileName, IEnumerable<DeploymentUnit>? deploymentUnits = null, JobExecutionOptions? options = null, IMarshaller<TArg>? argMarshaller = null, IMarshaller<string>? resultMarshaller = null)
Parameters
wasmModuleFileNamestringWasm module file name. Example:
module.wasm.deploymentUnitsIEnumerable<DeploymentUnit>Deployment units.
optionsJobExecutionOptionsJob execution options. ExecutorType is set to WasmEmbedded unconditionally.
argMarshallerIMarshaller<TArg>Argument marshaller.
resultMarshallerIMarshaller<string>Result marshaller.
Returns
- JobDescriptor<TArg, string>
Job descriptor.
Type Parameters
TArgArgument type.
Create<TArg, TResult>(string, string, WasmType, WasmCallingConvention, IEnumerable<DeploymentUnit>?, JobExecutionOptions?, IMarshaller<TArg>?, IMarshaller<TResult>?)
Creates a job descriptor for a WebAssembly job.
public static JobDescriptor<TArg, TResult> Create<TArg, TResult>(string wasmModuleFileName, string wasmFunctionName, WasmType resultType, WasmCallingConvention callingConvention = WasmCallingConvention.Generic, IEnumerable<DeploymentUnit>? deploymentUnits = null, JobExecutionOptions? options = null, IMarshaller<TArg>? argMarshaller = null, IMarshaller<TResult>? resultMarshaller = null)
Parameters
wasmModuleFileNamestringWasm module file name. Example:
module.wasm.wasmFunctionNamestringWasm exported function name.
resultTypeWasmTypeWasm function result type.
callingConventionWasmCallingConventionCalling convention.
deploymentUnitsIEnumerable<DeploymentUnit>Deployment units.
optionsJobExecutionOptionsJob execution options. ExecutorType is set to WasmEmbedded unconditionally.
argMarshallerIMarshaller<TArg>Argument marshaller.
resultMarshallerIMarshaller<TResult>Result marshaller.
Returns
- JobDescriptor<TArg, TResult>
Job descriptor.
Type Parameters
TArgArgument type.
TResultResult type.