diff --git a/samples/MauiApp1/MauiApp1.csproj b/samples/MauiApp1/MauiApp1.csproj index f6e8831..ef84bbd 100644 --- a/samples/MauiApp1/MauiApp1.csproj +++ b/samples/MauiApp1/MauiApp1.csproj @@ -62,8 +62,8 @@ - - + + diff --git a/samples/Samples.sln b/samples/Samples.sln index 4999e8b..fda7407 100644 --- a/samples/Samples.sln +++ b/samples/Samples.sln @@ -40,9 +40,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Fluxera.Extensions.Hosting. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorApp1", "BlazorApp1\BlazorApp1.csproj", "{ADC37B0F-E535-4CED-A434-774C26CC76C1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorApp2", "BlazorApp2\BlazorApp2\BlazorApp2.csproj", "{62802EF0-456D-4172-B234-238B796B0790}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorApp2", "BlazorApp2\BlazorApp2\BlazorApp2.csproj", "{62802EF0-456D-4172-B234-238B796B0790}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorApp2.Client", "BlazorApp2\BlazorApp2.Client\BlazorApp2.Client.csproj", "{5C424875-056E-4662-997E-D55EE61D2D12}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorApp2.Client", "BlazorApp2\BlazorApp2.Client\BlazorApp2.Client.csproj", "{5C424875-056E-4662-997E-D55EE61D2D12}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BlazorApp2", "BlazorApp2", "{71808A6D-BEC7-47BF-B01F-E9778EC6E6D4}" EndProject diff --git a/samples/TestProject1/TestProject1.csproj b/samples/TestProject1/TestProject1.csproj index a643938..fbbfcce 100644 --- a/samples/TestProject1/TestProject1.csproj +++ b/samples/TestProject1/TestProject1.csproj @@ -11,7 +11,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Fluxera.Extensions.Hosting.Abstractions/Modules/IModuleLoader.cs b/src/Fluxera.Extensions.Hosting.Abstractions/Modules/IModuleLoader.cs index 187beb2..3b5d5e6 100644 --- a/src/Fluxera.Extensions.Hosting.Abstractions/Modules/IModuleLoader.cs +++ b/src/Fluxera.Extensions.Hosting.Abstractions/Modules/IModuleLoader.cs @@ -14,7 +14,7 @@ public interface IModuleLoader { /// /// Loads all modules starting with the given startup module and - /// then loading it's dependencies. + /// then loading its dependencies. /// /// /// diff --git a/src/Fluxera.Extensions.Hosting/ApplicationLoader.cs b/src/Fluxera.Extensions.Hosting/ApplicationLoader.cs index 688645b..a04dbc9 100644 --- a/src/Fluxera.Extensions.Hosting/ApplicationLoader.cs +++ b/src/Fluxera.Extensions.Hosting/ApplicationLoader.cs @@ -41,11 +41,14 @@ public ApplicationLoader( this.PluginSources = pluginSources; this.Modules = modules; + // Configure the module container. services.AddSingleton(this); + services.AddObjectAccessor(this, ObjectAccessorLifetime.ConfigureServices); // Configure the services of the modules. modules.ConfigureServices(services); + // Configure the application loader. services.AddSingleton(this); }