Ejemplo n.º 1
0
 public override void Dispose()
 {
     if (app is IsolatedApplication)
     {
         IsolatedApplication iapp = app as IsolatedApplication;
         iapp.BackendChanged  -= OnBackendChanged;
         iapp.BackendChanging -= OnBackendChanging;
     }
     base.Dispose();
 }
Ejemplo n.º 2
0
        internal Project(Application app, ProjectBackend backend)
        {
            this.app = app;
            if (backend != null)
            {
                this.backend = backend;
                backend.SetFrontend(this);
            }

            if (app is IsolatedApplication)
            {
                IsolatedApplication iapp = app as IsolatedApplication;
                iapp.BackendChanging += OnBackendChanging;
                iapp.BackendChanged  += OnBackendChanged;
            }
        }
Ejemplo n.º 3
0
        public void Dispose()
        {
            if (app is IsolatedApplication)
            {
                IsolatedApplication iapp = app as IsolatedApplication;
                iapp.BackendChanging -= OnBackendChanging;
                iapp.BackendChanged  -= OnBackendChanged;
            }

            if (tmpProjectFile != null && File.Exists(tmpProjectFile))
            {
                File.Delete(tmpProjectFile);
                tmpProjectFile = null;
            }
            if (backend != null)
            {
                backend.Dispose();
            }
            if (Disposed != null)
            {
                Disposed(this, EventArgs.Empty);
            }
            System.Runtime.Remoting.RemotingServices.Disconnect(this);
        }
 public ApplicationBackendController(IsolatedApplication app, string channelId)
 {
     this.app       = app;
     this.channelId = channelId;
 }
		public ApplicationBackendController (IsolatedApplication app, string channelId)
		{
			this.app = app;
			this.channelId = channelId;
		}