-
Notifications
You must be signed in to change notification settings - Fork 855
Expand file tree
/
Copy pathIModuleManager.cs
More file actions
40 lines (35 loc) · 1.64 KB
/
IModuleManager.cs
File metadata and controls
40 lines (35 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using Microsoft.AspNetCore.Builder;
namespace VirtoCommerce.Platform.Core.Modularity
{
/// <summary>
/// Defines the interface for the service that will retrieve and initialize the application's modules.
/// </summary>
[Obsolete("Use ModuleRunner static class instead.", DiagnosticId = "VC0014", UrlFormat = "https://docs.virtocommerce.org/products/products-virto3-versions")]
public interface IModuleManager
{
/// <summary>
/// Initializes the modules marked as <see cref="InitializationMode.WhenAvailable"/> on the <see cref="ModuleCatalog"/>.
/// </summary>
void Run();
/// <summary>
/// Loads and initializes the module on the <see cref="ModuleCatalog"/> with the name <paramref name="moduleName"/>.
/// </summary>
/// <param name="moduleName">Name of the module requested for initialization.</param>
void LoadModule(string moduleName);
/// <summary>
/// Initializes the module during second iteration through all modules.
/// </summary>
/// <param name="moduleInfo"></param>
/// <param name="appBuilder"></param>
void PostInitializeModule(ModuleInfo moduleInfo, IApplicationBuilder appBuilder);
/// <summary>
/// Raised repeatedly to provide progress as modules are downloaded.
/// </summary>
event EventHandler<ModuleDownloadProgressChangedEventArgs> ModuleDownloadProgressChanged;
/// <summary>
/// Raised when a module is loaded or fails to load.
/// </summary>
event EventHandler<LoadModuleCompletedEventArgs> LoadModuleCompleted;
}
}