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); } }
private void OnDeSerialized(StreamingContext context) { LegacyCustomParams.ToDictionary(CustomParams); }
private void OnSerializing(StreamingContext context) { LegacyCustomParams.FromDictionary(CustomParams); }