Class MethodShimInvoker
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Invocation
- Assembly
- Echo.Platforms.AsmResolver.dll
Provides an implementation that handles invocations on a per-method basis.
public class MethodShimInvoker : IMethodInvoker
- Inheritance
-
MethodShimInvoker
- Implements
- Inherited Members
- Extension Methods
Constructors
MethodShimInvoker()
Creates a new method shim invoker.
public MethodShimInvoker()
MethodShimInvoker(SignatureComparer)
Creates a new method shim invoker.
public MethodShimInvoker(SignatureComparer comparer)
Parameters
comparerSignatureComparerThe comparer object to use when comparing methods.
Methods
Invoke(CilExecutionContext, IMethodDescriptor, IList<BitVector>)
Invokes or emulates an external method.
public InvocationResult Invoke(CilExecutionContext context, IMethodDescriptor method, IList<BitVector> arguments)
Parameters
contextCilExecutionContextThe execution context the call originates from.
methodIMethodDescriptorThe method to invoke.
argumentsIList<BitVector>The arguments to invoke the method with.
Returns
- InvocationResult
The result
Map(IMethodDescriptor, IMethodInvoker)
Assigns a method invoker to a specific method.
public MethodShimInvoker Map(IMethodDescriptor method, IMethodInvoker handler)
Parameters
methodIMethodDescriptorThe method to handle.
handlerIMethodInvokerThe invoker that will handle the method.
Returns
- MethodShimInvoker
The current method shim invoker.
Map(IMethodDescriptor, MethodHandler)
Assigns a method invoker to a specific method.
public MethodShimInvoker Map(IMethodDescriptor method, MethodHandler handler)
Parameters
methodIMethodDescriptorThe method to handle.
handlerMethodHandlerThe invoker that will handle the method.
Returns
- MethodShimInvoker
The current method shim invoker.
MapMany(IEnumerable<IMethodDescriptor>, IMethodInvoker)
Assigns a methods invoker to multiple methods.
public MethodShimInvoker MapMany(IEnumerable<IMethodDescriptor> methods, IMethodInvoker handler)
Parameters
methodsIEnumerable<IMethodDescriptor>The methods to handle.
handlerIMethodInvokerThe invoker that will handle the method.
Returns
- MethodShimInvoker
The current method shim invoker.
MapMany(IEnumerable<IMethodDescriptor>, MethodHandler)
Assigns a methods invoker to multiple methods.
public MethodShimInvoker MapMany(IEnumerable<IMethodDescriptor> methods, MethodHandler handler)
Parameters
methodsIEnumerable<IMethodDescriptor>The methods to handle.
handlerMethodHandlerThe invoker that will handle the method.
Returns
- MethodShimInvoker
The current method shim invoker.