예제 #1
0
        public Message(IMessage parentMessage = null)
        {
            OperationId        = Guid.NewGuid().ToString();
            ParentOperationId  = OperationId;
            MainOperationId    = OperationId;
            CustomParams       = new Dictionary <string, string>();
            LegacyCustomParams = new LegacyCustomParams();
            Headers            = new Dictionary <string, object>();

            if (parentMessage != null)
            {
                AssignBaseMessageData(parentMessage);
            }
        }
예제 #2
0
 private void OnDeSerialized(StreamingContext context)
 {
     LegacyCustomParams.ToDictionary(CustomParams);
 }
예제 #3
0
 private void OnSerializing(StreamingContext context)
 {
     LegacyCustomParams.FromDictionary(CustomParams);
 }