コード例 #1
0
ファイル: cmsutils.cs プロジェクト: wwkkww1983/ZJCredit
        internal static string GetFriendlyName(ActivationContext activationContext)
        {
            IDescriptionMetadataEntry descriptionData = ((IMetadataSectionEntry)activationContext.DeploymentComponentManifest.MetadataSectionEntry).DescriptionData;
            string str = string.Empty;

            if (descriptionData != null)
            {
                DescriptionMetadataEntry allData = descriptionData.AllData;
                str = allData.Publisher != null?string.Format("{0} {1}", (object)allData.Publisher, (object)allData.Product) : allData.Product;
            }
            return(str);
        }
コード例 #2
0
        // Token: 0x06004FF9 RID: 20473 RVA: 0x0011967C File Offset: 0x0011787C
        internal static string GetFriendlyName(ActivationContext activationContext)
        {
            ICMS deploymentComponentManifest = activationContext.DeploymentComponentManifest;
            IMetadataSectionEntry     metadataSectionEntry = (IMetadataSectionEntry)deploymentComponentManifest.MetadataSectionEntry;
            IDescriptionMetadataEntry descriptionData      = metadataSectionEntry.DescriptionData;
            string result = string.Empty;

            if (descriptionData != null)
            {
                DescriptionMetadataEntry allData = descriptionData.AllData;
                result = ((allData.Publisher != null) ? string.Format("{0} {1}", allData.Publisher, allData.Product) : allData.Product);
            }
            return(result);
        }
コード例 #3
0
        internal static string GetFriendlyName(ActivationContext activationContext)
        {
            ICMS deplManifest = activationContext.DeploymentComponentManifest;
            IMetadataSectionEntry     metadataSectionEntry     = (IMetadataSectionEntry)deplManifest.MetadataSectionEntry;
            IDescriptionMetadataEntry descriptionMetadataEntry = metadataSectionEntry.DescriptionData;
            string friendlyName = String.Empty;

            if (descriptionMetadataEntry != null)
            {
                DescriptionMetadataEntry entry = descriptionMetadataEntry.AllData;
                friendlyName = (entry.Publisher != null ? String.Format("{0} {1}", entry.Publisher, entry.Product) : entry.Product);
            }
            return(friendlyName);
        }
コード例 #4
0
 public Description(System.Deployment.Internal.Isolation.Manifest.DescriptionMetadataEntry descriptionMetadataEntry)
 {
     this._publisher = descriptionMetadataEntry.Publisher;
     this._product   = descriptionMetadataEntry.Product;
     this._suiteName = descriptionMetadataEntry.SuiteName;
     if (this._suiteName == null)
     {
         this._suiteName = "";
     }
     this._supportUri     = AssemblyManifest.UriFromMetadataEntry(descriptionMetadataEntry.SupportUrl, "Ex_DescriptionSupportUrlNotValid");
     this._errorReportUri = AssemblyManifest.UriFromMetadataEntry(descriptionMetadataEntry.ErrorReportUrl, "Ex_DescriptionErrorReportUrlNotValid");
     this._iconFile       = descriptionMetadataEntry.IconFile;
     if (this._iconFile != null)
     {
         this._iconFileFS = UriHelper.NormalizePathDirectorySeparators(this._iconFile);
     }
     this._filteredPublisher = PathTwiddler.FilterString(this._publisher, ' ', false);
     this._filteredProduct   = PathTwiddler.FilterString(this._product, ' ', false);
     this._filteredSuiteName = PathTwiddler.FilterString(this._suiteName, ' ', false);
 }