/// <summary> /// Initializes a new instance of the <see cref="LoadedModuleInfo"/> class, copying the existing object. /// </summary> public LoadedModuleInfo(LoadedModuleInfo toCopy) { this.assembly = toCopy.assembly; this.name = toCopy.name; this.roles = new List<string>(toCopy.roles); this.dependencies = new List<string>(toCopy.dependencies); }
/// <summary> /// Fires the ModuleLoaded event. /// </summary> /// <param name="module">The module that was loaded.</param> protected virtual void OnModuleLoaded(LoadedModuleInfo module) { if (ModuleLoaded != null) ModuleLoaded(this, new DataEventArgs<LoadedModuleInfo>(module)); }