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