public InvokeMessage GetValue() { var message = new InvokeMessage { Id = Id, ServiceId = ServiceId }; if (Parameters != null) { message.Parameters = Parameters.ToDictionary(k => k.Key, v => v.Value.GetValue()); } if (Headers != null) { message.Headers = Headers.ToDictionary(k => k.Key, v => v.Value); } return(message); }
public void SetValue(InvokeMessage message) { Id = message.Id; ServiceId = message.ServiceId; if (message.Parameters != null) { Parameters = message.Parameters.ToDictionary(k => k.Key, v => { var item = new TDynamice(); item.SetValue(v.Value); return(item); }); } if (message.Headers != null) { Headers = message.Headers.ToDictionary(k => k.Key, v => v.Value); } }
public DMessageInvoke(InvokeMessage message) { SetValue(message); }