コード例 #1
0
 /// <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();
     }
 }
コード例 #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            Bus?.Dispose();
        }
コード例 #4
0
 public override void Dispose()
 {
     Readback(null, ptr => {
         using (var dispatcher = new MainDispatcher())
             dispatcher.Dispatch(() => {
                 Texture2D.Destroy(framebuffer);
                 readbackDispatcher.Dispose();
                 handlerDispatcher.Dispose();
             });
     });
 }
コード例 #5
0
 protected virtual void OnDestroy()
 {
     if (ScriptWatchDisposable != null)
     {
         ScriptWatchDisposable.Dispose();
     }
     context?.Dispose();
     dispatcher?.Dispose();
     runner                = null;
     context               = null;
     dispatcher            = null;
     ScriptWatchDisposable = null;
 }
コード例 #6
0
 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");
 }
コード例 #7
0
 public void Dispose()
 {
     _dispatcher?.Dispose();
 }
コード例 #8
0
ファイル: RabbitLogger.cs プロジェクト: tmassey/playing
 public void Dispose()
 {
     _logDispatcher.Dispose();
     _rabbitServer.Dispose();
 }
コード例 #9
0
 public void Dispose()
 {
     _timer.Dispose();
     _dispatcher.Dispose();
     _rabbitServer.Dispose();
 }