Commit 5b13d712 authored by alan.f's avatar alan.f

update-exception-code

parent 86a03328
......@@ -32,17 +32,13 @@ namespace C_UI
var request = new DicomCStoreRequest(fileName);
request.OnResponseReceived += (req, response) => logger.Info($"{response.Status}-{fileName}");
await client.AddRequestAsync(request);
await client.SendAsync();
await client.SendAsync();
})
.Select(t => t.Wait(1))
.Subscribe(filename =>
{
logger.Warn($"file sent:{filename}");
},
onError =>
{
logger.Error(onError.Message);
},
.Select(t => t.Exception.Flatten())
.Subscribe(filename =>
logger.Warn($"file sent:{filename}"),
onError =>
logger.Error(onError.Message),
() => { });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment