Exemplo n.º 1
0
 void OnBackendStopped(object ob, EventArgs args)
 {
     // The backend process crashed, try to restart it
     Backend           = null;
     backendController = new ApplicationBackendController(this, channelId);
     backendController.StartBackend();
     OnBackendChanged(true);
 }
Exemplo n.º 2
0
		public IsolatedApplication (IsolationMode mode)
		{
			if (mode == IsolationMode.None)
				throw new ArgumentException ("mode");
			channelId = RegisterRemotingChannel (mode);
			backendController = new ApplicationBackendController (this, channelId);
			backendController.StartBackend ();
			OnBackendChanged (false);
		}
Exemplo n.º 3
0
 public IsolatedApplication(IsolationMode mode)
 {
     if (mode == IsolationMode.None)
     {
         throw new ArgumentException("mode");
     }
     channelId         = RegisterRemotingChannel(mode);
     backendController = new ApplicationBackendController(this, channelId);
     backendController.StartBackend();
     OnBackendChanged(false);
 }
Exemplo n.º 4
0
        internal override void RestartBackend()
        {
            // The backend process needs to be restarted.
            // This is done in background.

            ThreadPool.QueueUserWorkItem(delegate {
                try {
                    // Start the new backend
                    ApplicationBackendController newController = new ApplicationBackendController(this, channelId);
                    newController.StartBackend();
                    Gtk.Application.Invoke(newController, EventArgs.Empty, OnNewBackendStarted);
                } catch {
                    // FIXME: show an error message
                }
            });
        }
Exemplo n.º 5
0
		void OnBackendStopped (object ob, EventArgs args)
		{
			// The backend process crashed, try to restart it
			Backend = null;
			backendController = new ApplicationBackendController (this, channelId);
			backendController.StartBackend ();
			OnBackendChanged (true);
		}
Exemplo n.º 6
0
		internal override void RestartBackend ()
		{
			// The backend process needs to be restarted.
			// This is done in background.
				
			ThreadPool.QueueUserWorkItem (delegate {
				try {
					// Start the new backend
					ApplicationBackendController newController = new ApplicationBackendController (this, channelId);
					newController.StartBackend ();
					Gtk.Application.Invoke (newController, EventArgs.Empty, OnNewBackendStarted);
				} catch {
					// FIXME: show an error message
				}
			});
		}