public override void Dispose() { if (app is IsolatedApplication) { IsolatedApplication iapp = app as IsolatedApplication; iapp.BackendChanged -= OnBackendChanged; iapp.BackendChanging -= OnBackendChanging; } base.Dispose(); }
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; } }
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; }