void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { try { _scheduler.Stop(60.Seconds()); _fiber.Shutdown(60.Seconds()); _bus.Dispose(); _bus = null; } catch (Exception ex) { string message = "Error in shutting down the TimeoutService: " + ex.Message; ShutDownException exp = new ShutDownException(message, ex); _log.Error(message, exp); throw exp; } } _disposed = true; }
public void Dispose() { try { //does this own the bus? _bus.Dispose(); _bus = null; } catch (Exception ex) { string message = "Error in shutting down the SubscriptionService: " + ex.Message; ShutDownException exp = new ShutDownException(message, ex); _log.Error(message, exp); throw exp; } }
public void Dispose() { try { _scheduler.Dispose(); _queue.Disable(); _bus.Dispose(); _bus = null; } catch (Exception ex) { string message = "Error in shutting down the TimeoutService: " + ex.Message; ShutDownException exp = new ShutDownException(message, ex); _log.Error(message, exp); throw exp; } }
void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { try { _bus.Dispose(); _bus = null; } catch (Exception ex) { string message = "Error in shutting down the SubscriptionService: " + ex.Message; var exp = new ShutDownException(message, ex); _log.Error(message, exp); throw exp; } } _disposed = true; }