Interface IInvocationContext
Abstract invocation context
Namespace: Solti.Utils.Proxy
Assembly: Solti.Utils.Proxy.dll
Syntax
public interface IInvocationContext
Properties
Args
The arguments passed by the caller.
Declaration
object[] Args { get; }
Property Value
Type | Description |
---|---|
System.Object[] |
Remarks
Before the target gets called you may use this property to inspect or modify parameters passed by the caller. After it you can read or amend the "by ref" parameters set by the target method.
GenericArguments
Generic arguments supplied by the caller.
Declaration
IReadOnlyList<Type> GenericArguments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Type> |
Member
The member (property, event or method) that is being proxied.
Declaration
ExtendedMemberInfo Member { get; }
Property Value
Type | Description |
---|---|
ExtendedMemberInfo |
Proxy
The proxy object on which the call was made.
Declaration
object Proxy { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
Dispatch()
Dispatches the current call to the target.
Declaration
object Dispatch()
Returns
Type | Description |
---|---|
System.Object |