internal async Task WaitForMessageAsync() { try { await binder.WaitForMessageAsync(CancellationToken.None); } catch (CommunicationObjectAbortedException) { } catch (CommunicationObjectFaultedException) { } catch (CommunicationException e) { HandleError(e); } catch (Exception e) { if (Fx.IsFatal(e)) { throw; } HandleErrorOrAbort(e); } }
public Task <bool> WaitForMessageAsync(CancellationToken token) { return(channelBinder.WaitForMessageAsync(token)); }