Synced
ModuleCatalogContribution.Constructor
Section titled “ModuleCatalogContribution.Constructor”
- Acquires immutable views while transferring the generation lifetime to the contribution.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Extensibility.Modules
Declaration
Section titled “Declaration”public Inno.Extensibility.Modules.ModuleCatalogContribution.ModuleCatalogContribution(string moduleName, Inno.Extensibility.Modules.AssemblyDomain domain, Inno.Extensibility.Modules.AssemblyScope scope, System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> assemblies, System.Collections.Generic.IReadOnlyDictionary<System.Reflection.Assembly, Inno.Extensibility.Modules.AssemblyScope> assemblyScopes, Inno.Extensibility.Modules.IModuleLifetime? lifetime = null)Parameters
Section titled “Parameters”Parameter moduleName: The stable module name.
Parameter domain: The ownership domain.
Parameter scope: The module’s default dependency scope.
Parameter assemblies: The complete acquired assembly set.
Parameter assemblyScopes: The actual dependency scope of every acquired assembly.
Parameter lifetime: The transferred generation owner; null denotes externally owned static code.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The name is empty, the assembly set is empty or contains duplicates, or scope metadata is incomplete.