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
Type | Name |
---|---|
WaaS.Runtime.Bindings.Binder | binder |
WaaS.Runtime.ExecutionContext | context |
WaaS.Runtime.IInvocableFunction | function |
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
Type | Name |
---|---|
WaaS.Runtime.Bindings.Binder | binder |
WaaS.Runtime.ExecutionContext | context |
WaaS.Runtime.IInvocableFunction | function |
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
Type | Name |
---|---|
WaaS.Runtime.Bindings.Binder | binder |
WaaS.Runtime.ExecutionContext | context |
WaaS.Runtime.IInvocableFunction | function |
System.Object[] | parameters |
Type Parameters
TResult
ToExternalFunction(Binder, Delegate)
View Source
Declaration
public static ExternalFunction ToExternalFunction(this Binder binder, Delegate @delegate)
Returns
Parameters
Type | Name |
---|---|
WaaS.Runtime.Bindings.Binder | binder |
System.Delegate | delegate |
ToAsyncExternalFunction(Binder, Delegate)
View Source
Declaration
public static AsyncExternalFunctionPointer ToAsyncExternalFunction(this Binder binder, Delegate @delegate)
Returns
WaaS.Runtime.AsyncExternalFunctionPointer
Parameters
Type | Name |
---|---|
WaaS.Runtime.Bindings.Binder | binder |
System.Delegate | delegate |