Click or drag to resize

TypeScriptUtilsInvokeMethodFromJsonArgs Method

Invokes the given method using a JSON map of its arguments. This method is used in multiple places to handle TypeScript => C# RPC.

Namespace:  Packflow.Interface
Assembly:  MicaSystems.Packflow.Interface (in MicaSystems.Packflow.Interface.dll) Version: 1.0.0.0 (2.0.0.223)
Syntax
C#
public static Object InvokeMethodFromJsonArgs(
	Object instance,
	MethodBase method,
	IDictionary<string, JToken> jsonArgs,
	IDictionary<Type, Object> injectables = null
)

Parameters

instance
Type: SystemObject
The instance on which the method will be invoked.
method
Type: System.ReflectionMethodBase
The method to invoke.
jsonArgs
Type: System.Collections.GenericIDictionaryString, JToken
A dictionary mapping argument names to json tokens.
injectables (Optional)
Type: System.Collections.GenericIDictionaryType, Object
An optional mapping from type to object instance. These instances will be injected to the target method arguments when their type match.

Return Value

Type: Object
Exceptions
ExceptionCondition
ArgumentException
See Also