void IVsAppContainerProjectDeployCallback.OnEndDeploy(bool successful, string deployedPackageMoniker, string deployedAppUserModelID) { try { if (successful) { deployPackageMoniker = deployedPackageMoniker; deployAppUserModelID = deployedAppUserModelID; NotifyEndDeploy(1); var result = deployOp.GetDeployResult(); this.LayoutDir = result.LayoutFolder; } else { deployPackageMoniker = null; deployAppUserModelID = null; NotifyEndDeploy(0); } } finally { lock (syncObject) { deployOp = null; if (connection != null) { connection.Dispose(); connection = null; } } } }
void IVsAppContainerProjectDeployCallback.OnEndDeploy(bool successful, string deployedPackageMoniker, string deployedAppUserModelID) { try { if (successful) { var result = deployOp.GetDeployResult(); this.LayoutDir = result.LayoutFolder; deployPackageMoniker = deployedPackageMoniker; deployAppUserModelID = deployedAppUserModelID; NotifyEndDeploy(1); } else { deployPackageMoniker = null; deployAppUserModelID = null; NotifyEndDeploy(0); } } finally { IVsDebuggerDeployConnection localConnection = null; lock (syncObject) { this.appContainerBootstrapperOperation = null; this.deployOp = null; localConnection = this.connection; this.connection = null; } if (localConnection != null) { localConnection.Dispose(); } } }