예제 #1
0
 protected override void OnClose(TimeSpan timeout)
 {
     EventHubClient.CloseOrAbortAsyncResult closeOrAbortAsyncResult = new EventHubClient.CloseOrAbortAsyncResult(this, false, timeout, null, null);
     closeOrAbortAsyncResult.RunSynchronously();
 }
예제 #2
0
 protected override void OnAbort()
 {
     EventHubClient.CloseOrAbortAsyncResult closeOrAbortAsyncResult = new EventHubClient.CloseOrAbortAsyncResult(this, true, TimeSpan.MaxValue, null, null);
     closeOrAbortAsyncResult.RunSynchronously();
 }