Delegate InvocationMatcher
- Namespace
- Bunit
- Assembly
- Bunit.Web.dll
Represents a invocation matcher / predicate, that is used to determine if a JSRuntimeInvocationHandler<TResult> matches a specific JSRuntimeInvocation.
public delegate bool InvocationMatcher(JSRuntimeInvocation invocation)
Parameters
invocation
JSRuntimeInvocationThe invocation to match against.
Returns
- bool
True if the JSRuntimeInvocationHandler<TResult> can handle the invocation, false otherwise.
- Extension Methods
Constructors
InvocationMatcher(object, nint)
public InvocationMatcher(object @object, nint method)
Parameters
Methods
BeginInvoke(JSRuntimeInvocation, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(JSRuntimeInvocation invocation, AsyncCallback callback, object @object)
Parameters
invocation
JSRuntimeInvocationcallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual bool EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
Invoke(JSRuntimeInvocation)
public virtual bool Invoke(JSRuntimeInvocation invocation)
Parameters
invocation
JSRuntimeInvocation