Class RequestAnyMsg
Represents request msg that marshalls arguments as object[]. Although the most convenient and simple, this way of working with glue is slower than using RequestTypedMsg which needs to be derived-from for every method
Inherited Members
Namespace: Azos.Glue.Protocol
Assembly: Azos.dll
Syntax
public sealed class RequestAnyMsg : RequestMsg
Constructors
RequestAnyMsg(RequestMsg, TypeSpec, MethodSpec, Boolean, Nullable<Guid>, Object[], Boolean, Boolean)
This .ctor is handy for message inspectors. Creates a substitute message for the original one with new values. Binding-specific context is cloned and headers/correlation data are cloned conditionaly
Declaration
public RequestAnyMsg(RequestMsg inspectedOriginal, TypeSpec contract, MethodSpec method, bool oneWay, Guid? instance, object[] args, bool cloneHeaders = true, bool cloneCorrelation = true)
Parameters
Type | Name | Description |
---|---|---|
RequestMsg | inspectedOriginal | |
TypeSpec | contract | |
MethodSpec | method | |
System.Boolean | oneWay | |
System.Nullable<System.Guid> | instance | |
System.Object[] | args | |
System.Boolean | cloneHeaders | |
System.Boolean | cloneCorrelation |
RequestAnyMsg(RequestMsg, MethodInfo, Nullable<Guid>, Object[], Boolean, Boolean)
This .ctor is handy for message inspectors. Creates a substitute message for the original one with new values. Binding-specific context is cloned and headers/correlation data are cloned conditionaly
Declaration
public RequestAnyMsg(RequestMsg inspectedOriginal, MethodInfo method, Guid? instance, object[] args, bool cloneHeaders = true, bool cloneCorrelation = true)
Parameters
Type | Name | Description |
---|---|---|
RequestMsg | inspectedOriginal | |
System.Reflection.MethodInfo | method | |
System.Nullable<System.Guid> | instance | |
System.Object[] | args | |
System.Boolean | cloneHeaders | |
System.Boolean | cloneCorrelation |
RequestAnyMsg(TypeSpec, MethodSpec, Boolean, Nullable<Guid>, Object[])
Constructs request message from pre-computed specs obtained by reflection. This constructor is the fastest as it does not use reflection
Declaration
public RequestAnyMsg(TypeSpec contract, MethodSpec method, bool oneWay, Guid? instance, object[] args)
Parameters
Type | Name | Description |
---|---|---|
TypeSpec | contract | |
MethodSpec | method | |
System.Boolean | oneWay | |
System.Nullable<System.Guid> | instance | |
System.Object[] | args |
RequestAnyMsg(MethodInfo, Nullable<Guid>, Object[])
Constructs request message from method information and arguments for call invocation. This constructor is slower as it uses reflection
Declaration
public RequestAnyMsg(MethodInfo method, Guid? instance, object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | method | |
System.Nullable<System.Guid> | instance | |
System.Object[] | args |
Properties
Arguments
Returns call arguments
Declaration
public object[] Arguments { get; }
Property Value
Type | Description |
---|---|
System.Object[] |