Ejemplo n.º 1
0
 /// <summary>
 /// Creates a DnnPackage entity from the DnnPackage attribute.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <returns></returns>
 public static DnnPackage FromAttribute(DnnPackageAttribute attribute, AssemblyName assemblyName)
 {
     return new DnnPackage(attribute.Name, assemblyName)
                {
                    AzureCompatible = attribute.AzureCompatible,
                    Description = attribute.Description,
                    FriendlyName = attribute.FriendlyName,
                    IconFileName = attribute.IconFileName,
                    PackageType = attribute.PackageType
                };
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates the package from attribute.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <returns></returns>
 private DnnPackage CreatePackageFromAttribute(DnnPackageAttribute attribute)
 {
     var assemblyName = this.Assembly.GetName();
     return DnnPackage.FromAttribute(attribute, assemblyName).EnrichPackageFromAssembly(this.Assembly);
 }