コード例 #1
0
        private static TransferQRFileCommand BuildTransferFileCommand(JObject jObj)
        {
            var    result = new TransferQRFileCommand();
            var    values = jObj.ToObject <Dictionary <string, object> >();
            string file;

            if (values.TryGet("file", out file))
            {
                result.File = file;
            }

            return(result);
        }
コード例 #2
0
 public Task <string> Transfer(TransferQRFileCommand command, CancellationToken token)
 {
     return(_mediator.Send(command, token));
 }