Esempio n. 1
0
        public void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            Tracer.Browse        -= Tracer_Browse;
            Session.AfterRequest -= Session_AfterRequest;
            Session.Disconnected -= Session_Disconnected;

            var sessionProvider = WorkflowProvider.GetOrCreate().RSessions;

            sessionProvider.BrokerChanged -= SessionProvider_BrokerChanged;

            _events  = null;
            _program = null;

            MainThread.Dispose();
            MainThread = null;

            Tracer = null;

            ExitBrowserAsync(Session).DoNotWait();
            Session = null;

            IsDisposed = true;
        }
Esempio n. 2
0
        public void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            var rSession = DebugSession.RSession;

            DebugSession.Browse -= Session_Browse;
            DebugSession.RSession.AfterRequest -= RSession_AfterRequest;
            DebugSession.RSession.Disconnected -= RSession_Disconnected;

            _events  = null;
            _program = null;

            MainThread.Dispose();
            MainThread = null;

            DebugSession         = null;
            RSessionProvider     = null;
            DebugSessionProvider = null;

            IsDisposed = true;

            ExitBrowserAsync(rSession)
            .SilenceException <MessageTransportException>()
            .SilenceException <RException>()
            .DoNotWait();
        }
Esempio n. 3
0
        public void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            Tracer.Browse        -= Tracer_Browse;
            Session.AfterRequest -= Session_AfterRequest;
            Session.Disconnected -= Session_Disconnected;

            _events  = null;
            _program = null;

            MainThread.Dispose();
            MainThread = null;

            Tracer           = null;
            RSessionProvider = null;

            ExitBrowserAsync(Session)
            .SilenceException <MessageTransportException>()
            .DoNotWait();
            Session = null;

            IsDisposed = true;
        }
Esempio n. 4
0
 public void Dispose()
 {
     _mt.Dispose();
 }