public static AZCopyInitMessage FromJson(this AZCopyInitMessage msg, JToken jToken) { msg.MessageContent = jToken.Value <string>(nameof(msg.MessageContent)); msg.TimeStamp = jToken.Value <string>(nameof(msg.TimeStamp)); var messageContentJToken = JValue.Parse(msg.MessageContent); msg.LogFileLocation = messageContentJToken.Value <string>(nameof(msg.LogFileLocation)); msg.JobID = messageContentJToken.Value <string>(nameof(msg.JobID)); msg.IsCleanupJob = messageContentJToken.Value <string>(nameof(msg.JobID)); return(msg); }
private void AzCopyClient_AzCopyInitMessageHandler(object sender, AZCopyInitMessage e) { this.rpc.NotifyAsync(nameof(IAZCopyServiceChannel.AzCopyInitMessageHandler), e).Forget(); }