コード例 #1
0
 private void PrepareRemoveDeployment(StoreTransactionContext storeTxn, SubscriptionState subState, System.Deployment.Application.DefinitionAppId appId)
 {
     System.Deployment.Application.DefinitionAppId deployAppId = appId.ToDeploymentAppId();
     if (subState.IsShellVisible)
     {
         this.PrepareInstallUninstallDeployment(storeTxn, deployAppId, false);
     }
     else
     {
         this.PreparePinUnpinDeployment(storeTxn, deployAppId, false);
     }
     this.PrepareSetDeploymentProperties(storeTxn, appId, null);
     storeTxn.ScavengeContext.AddDeploymentToUnpin(deployAppId, subState);
     ApplicationTrust.RemoveCachedTrust(appId);
 }
コード例 #2
0
 public void AddOnlineAppToCommit(System.Deployment.Application.DefinitionAppId appId, SubscriptionState subState)
 {
     System.Deployment.Application.DefinitionAppId deployAppId = appId.ToDeploymentAppId();
     AddDeploymentToList(ref this._onlineDeploysToPin, deployAppId);
     if (appId.Equals(subState.CurrentBind) || appId.Equals(subState.PreviousBind))
     {
         AddDeploymentToList(ref this._onlineDeploysToPinAlreadyPinned, deployAppId);
     }
 }