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