Class LicenseService
- Namespace
- Loehnert.Lisrt.ThirdPartyLicenses
- Assembly
- Loehnert.Lisrt.dll
Represents a service for licenses.
[Export(typeof(ILicenseService))]
public class LicenseService : ILicenseService
- Inheritance
-
LicenseService
- Implements
- Inherited Members
Constructors
LicenseService(IEnumerable<ILicense>)
Initializes a new instance of the LicenseService class. Sets the Usages by getting all UsesLicenseAttributes from all CurrentDomain assemblies.
[ImportingConstructor]
public LicenseService(IEnumerable<ILicense> licenses)
Parameters
licenses
IEnumerable<ILicense>All licenses.
Properties
Licenses
Gets the licenses.
public IEnumerable<ILicense> Licenses { get; }
Property Value
Usages
Gets the usages.
public IEnumerable<UsesLicenseAttribute> Usages { get; }