internal byte[] GetApplicationManifestBytes() { string manifestPath; if (this._form == ActivationContext.ContextForm.Loose) { manifestPath = this._manifestPaths[this._manifests.Count - 1]; } else { object obj; this._actContext.GetComponentManifest(0U, (IDefinitionIdentity)this._definitionIdentities[1], ref IsolationInterop.IID_IManifestInformation, out obj); ((IManifestInformation)obj).get_FullPath(out manifestPath); Marshal.ReleaseComObject(obj); } return(ActivationContext.ReadBytesFromFile(manifestPath)); }
internal byte[] GetDeploymentManifestBytes() { string FullPath; if (this._form == ActivationContext.ContextForm.Loose) { FullPath = this._manifestPaths[0]; } else { object ManifestInteface; this._actContext.GetComponentManifest(0U, (IDefinitionIdentity)this._definitionIdentities[0], ref IsolationInterop.IID_IManifestInformation, out ManifestInteface); ((IManifestInformation)ManifestInteface).get_FullPath(out FullPath); Marshal.ReleaseComObject(ManifestInteface); } return(ActivationContext.ReadBytesFromFile(FullPath)); }