Skip to main content

Class BindingExtensions

Assembly: WaaS.Core.dll
View Source
Declaration
public static class BindingExtensions

Methods

InvokeAsync<TResult>(Binder, ExecutionContext, IInvocableFunction, params object[])

View Source
Declaration
public static ValueTask<TResult> InvokeAsync<TResult>(this Binder binder, ExecutionContext context, IInvocableFunction function, params object[] parameters)
Returns

System.Threading.Tasks.ValueTask<<TResult>>

Parameters
TypeName
WaaS.Runtime.Bindings.Binderbinder
WaaS.Runtime.ExecutionContextcontext
WaaS.Runtime.IInvocableFunctionfunction
System.Object[]parameters
Type Parameters
  • TResult

InvokeAsync(Binder, ExecutionContext, IInvocableFunction, params object[])

View Source
Declaration
public static ValueTask InvokeAsync(this Binder binder, ExecutionContext context, IInvocableFunction function, params object[] parameters)
Returns

System.Threading.Tasks.ValueTask

Parameters
TypeName
WaaS.Runtime.Bindings.Binderbinder
WaaS.Runtime.ExecutionContextcontext
WaaS.Runtime.IInvocableFunctionfunction
System.Object[]parameters

Invoke<TResult>(Binder, ExecutionContext, IInvocableFunction, params object[])

View Source
Declaration
public static TResult Invoke<TResult>(this Binder binder, ExecutionContext context, IInvocableFunction function, params object[] parameters)
Returns

<TResult>

Parameters
TypeName
WaaS.Runtime.Bindings.Binderbinder
WaaS.Runtime.ExecutionContextcontext
WaaS.Runtime.IInvocableFunctionfunction
System.Object[]parameters
Type Parameters
  • TResult

ToExternalFunction(Binder, Delegate)

View Source
Declaration
public static ExternalFunction ToExternalFunction(this Binder binder, Delegate @delegate)
Returns

WaaS.Runtime.ExternalFunction

Parameters
TypeName
WaaS.Runtime.Bindings.Binderbinder
System.Delegatedelegate

ToAsyncExternalFunction(Binder, Delegate)

View Source
Declaration
public static AsyncExternalFunctionPointer ToAsyncExternalFunction(this Binder binder, Delegate @delegate)
Returns

WaaS.Runtime.AsyncExternalFunctionPointer

Parameters
TypeName
WaaS.Runtime.Bindings.Binderbinder
System.Delegatedelegate