public override async Task OnCloseAsync(TimeSpan timeout) { TimeoutHelper timeoutHelper = new TimeoutHelper(timeout); if (_rstChannelFactory != null) { await _rstChannelFactory.CloseHelperAsync(timeout); _rstChannelFactory = null; } await base.OnCloseAsync(timeoutHelper.RemainingTime()); }