/// <summary> /// Disposes of connection and dispatcher. /// </summary> public void Dispose() { _wrappedDispatcher?.Dispose(); _wrappedConnection?.Dispose(); _logger.Warn("Disposing of Connection and Dispatcher"); _status = Status.Uninitialized; }
protected virtual void Dispose(bool disposing) { if (disposing) { TokenSource?.Dispose(); _dispatcher?.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (!disposing) { return; } Bus?.Dispose(); }
public override void Dispose() { Readback(null, ptr => { using (var dispatcher = new MainDispatcher()) dispatcher.Dispatch(() => { Texture2D.Destroy(framebuffer); readbackDispatcher.Dispose(); handlerDispatcher.Dispose(); }); }); }
protected virtual void OnDestroy() { if (ScriptWatchDisposable != null) { ScriptWatchDisposable.Dispose(); } context?.Dispose(); dispatcher?.Dispose(); runner = null; context = null; dispatcher = null; ScriptWatchDisposable = null; }
public void Stop() { logger.Information("starting: stopping file watcher processes"); foreach (var fw in fileWatchers) { try { fw.Stop(); fw.Dispose(); } catch (Exception ex) { logger.Error(string.Format("an error occurred when stopping file watcher process. exception raised: {0}", ex.ToString())); } } logger.Information("finished: stopping file watcher processes"); logger.Information("starting: disposing dispatcher"); dispatcher.Dispose(); logger.Information("finished: disposing dispatcher"); }
public void Dispose() { _dispatcher?.Dispose(); }
public void Dispose() { _logDispatcher.Dispose(); _rabbitServer.Dispose(); }
public void Dispose() { _timer.Dispose(); _dispatcher.Dispose(); _rabbitServer.Dispose(); }