src/Azos/Glue/Protocol/Msg.cs
/// <summary>
/// Clones message state from another message instance.
/// State includes binding-specific context and optionally headers and correlation data
/// </summary>
Clones message state from another message instance.
State includes binding-specific context and optionally headers and correlation data
Clones message state from another message instance . State includes binding - specific context and optionally headers and correlation data
public void CloneState(Msg from, bool cloneHeaders = true, bool cloneCorrelation = true)
        {
              if (cloneHeaders)
                  if (from.HasHeaders)
                    this.Headers.AddRange(from.Headers);
              if (cloneCorrelation)
                  if (from.HasCorrelationData)
                    this.m_CorrelationData = new Dictionary<string,object>( from.CorrelationData );
              __SetBindingSpecificContext(from);
        }
public void CloneState ( Msg from , bool cloneHeaders = true , bool cloneCorrelation = true ) { if ( cloneHeaders ) if ( from . HasHeaders ) this . Headers . AddRange ( from . Headers ) ; if ( cloneCorrelation ) if ( from . HasCorrelationData ) this . m_CorrelationData = new Dictionary < string , object > ( from . CorrelationData ) ; __SetBindingSpecificContext ( from ) ; }
Clones message state from another message instance.
Clones message state from another message instance .
from
Msg
cloneHeaders
bool
cloneCorrelation
bool