/// <summary> /// 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 /// </summary> public RequestAnyMsg(RequestMsg inspectedOriginal, TypeSpec contract, MethodSpec method, bool oneWay, Guid?instance, object[] args, bool cloneHeaders = true, bool cloneCorrelation = true) : base(inspectedOriginal, contract, method, oneWay, instance, cloneHeaders, cloneCorrelation) { m_Arguments = args; }
/// <summary> /// Constructs request message from pre-computed specs obtained by reflection. /// This constructor is the fastest as it does not use reflection /// </summary> public RequestAnyMsg(TypeSpec contract, MethodSpec method, bool oneWay, Guid?instance, object[] args) : base(contract, method, oneWay, instance) { m_Arguments = args; }