Class Operation<T1, T2, TResult>
- Namespace
- Concord
- Assembly
- Concord.Emit.dll
Control parameter used by invoke injections that wrap a two-argument value-producing call, or a two-parameter target method under whole-method Around.
[SuppressMessage("Major Code Smell", "S2436", Justification = "Arity-N Operation handle; the type parameters mirror the wrapped target method's signature and are the handle's contract.")]
public sealed class Operation<T1, T2, TResult>
Type Parameters
T1The wrapped call's or target method's first argument type.
T2The wrapped call's or target method's second argument type.
TResultThe value type produced by the wrapped call or target method.
- Inheritance
-
Operation<T1, T2, TResult>
- Inherited Members
Methods
Invoke(T1, T2)
Invokes the original operation from inside a wrap injection.
[SuppressMessage("Critical Code Smell", "S1186", Justification = "Marker signature erased and replaced by Concord IL lowering at emit time; a real body would be dead code.")]
public TResult Invoke(T1 arg1, T2 arg2)
Parameters
arg1T1The first value to pass to the original operation.
arg2T2The second value to pass to the original operation.
Returns
- TResult
The value produced by the original operation.