internal DeploymentManager(Uri deploymentSource, bool isUpdate, bool isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp) { this._deploySource = deploymentSource; this._isupdate = isUpdate; this._isConfirmed = isConfirmed; this._downloadOptions = downloadOptions; this._events = new EventHandlerList(); this._syncGroupMap = CollectionsUtil.CreateCaseInsensitiveHashtable(); this._subStore = SubscriptionStore.CurrentUser; this.bindWorker = new ThreadStart(this.BindAsyncWorker); this.synchronizeWorker = new ThreadStart(this.SynchronizeAsyncWorker); this.synchronizeGroupWorker = new WaitCallback(this.SynchronizeGroupAsyncWorker); this.bindCompleted = new SendOrPostCallback(this.BindAsyncCompleted); this.synchronizeCompleted = new SendOrPostCallback(this.SynchronizeAsyncCompleted); this.progressReporter = new SendOrPostCallback(this.ProgressReporter); this.asyncOperation = optionalAsyncOp != null ? optionalAsyncOp : AsyncOperationManager.CreateOperation((object)null); this._log = Logger.StartLogging(); if (deploymentSource != (Uri)null) { Logger.SetSubscriptionUrl(this._log, deploymentSource); } this._assertApplicationReqEvents = new ManualResetEvent[3]; this._assertApplicationReqEvents[0] = this._trustNotGrantedEvent; this._assertApplicationReqEvents[1] = this._platformRequirementsFailedEvent; this._assertApplicationReqEvents[2] = this._trustGrantedEvent; this._callerType = DeploymentManager.CallerType.Other; PolicyKeys.SkipApplicationDependencyHashCheck(); PolicyKeys.SkipDeploymentProvider(); PolicyKeys.SkipSchemaValidation(); PolicyKeys.SkipSemanticValidation(); PolicyKeys.SkipSignatureValidation(); }
public InPlaceHostingManager(Uri deploymentManifest, bool launchInHostProcess) { if (!PlatformSpecific.OnXPOrAbove) { throw new PlatformNotSupportedException(Resources.GetString("Ex_RequiresXPOrHigher")); } if (deploymentManifest == null) { throw new ArgumentNullException("deploymentManifest"); } UriHelper.ValidateSupportedSchemeInArgument(deploymentManifest, "deploymentSource"); this._deploymentManager = new DeploymentManager(deploymentManifest, false, true, null, null); this._log = this._deploymentManager.LogId; this._isLaunchInHostProcess = launchInHostProcess; this._Initialize(); Logger.AddInternalState(this._log, "Activation through IPHM APIs started."); Logger.AddMethodCall(this._log, string.Concat(new object[] { "InPlaceHostingManager(", deploymentManifest, ",", launchInHostProcess.ToString(), ") called." })); }
internal GetManifestCompletedEventArgs(BindCompletedEventArgs e, ActivationDescription activationDescription, string logFilePath, Logger.LogIdentity log) : base(e.Error, e.Cancelled, e.UserState) { this._applicationIdentity = e.ActivationContext != null ? e.ActivationContext.Identity : (ApplicationIdentity)null; Logger.AddInternalState(log, "Creating GetManifestCompletedEventArgs."); string text = this._applicationIdentity.ToString(); this._subId = new DefinitionAppId(text).DeploymentIdentity.ToSubscriptionId(); this._logFilePath = logFilePath; this._isCached = e.IsCached; this._name = e.FriendlyName; this._actContext = e.ActivationContext; Logger.AddInternalState(log, "Application identity=" + text); Logger.AddInternalState(log, "Subscription identity=" + (this._subId != null ? this._subId.ToString() : "null")); Logger.AddInternalState(log, "IsCached=" + this._isCached.ToString()); if (this._isCached) { this._rawDeploymentManifest = e.ActivationContext.DeploymentManifestBytes; this._rawApplicationManifest = e.ActivationContext.ApplicationManifestBytes; } this._activationDescription = activationDescription; this._version = this._activationDescription.AppId.DeploymentIdentity.Version; this._support = this._activationDescription.DeployManifest.Description.SupportUri; }