diff --git a/src/Volo.Abp.AspNetCore/Abp/AspNetCore/AbpApplicationBuilderExtensions.cs b/src/Volo.Abp.AspNetCore/Abp/AspNetCore/AbpApplicationBuilderExtensions.cs index ec4abe08e3..d256406f69 100644 --- a/src/Volo.Abp.AspNetCore/Abp/AspNetCore/AbpApplicationBuilderExtensions.cs +++ b/src/Volo.Abp.AspNetCore/Abp/AspNetCore/AbpApplicationBuilderExtensions.cs @@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Builder { public static void InitializeAbpApplication(this IApplicationBuilder app) //TODO: Simply rename to InitializeApplication? { - var abpApplication = app.ApplicationServices.GetRequiredService(); + var abpApplication = app.ApplicationServices.GetRequiredService(); app.ApplicationServices.GetRequiredService().App = app; diff --git a/src/Volo.Abp/Abp/AbpApplication.cs b/src/Volo.Abp/Abp/AbpApplication.cs index 3174426c1c..edf67e8dfb 100644 --- a/src/Volo.Abp/Abp/AbpApplication.cs +++ b/src/Volo.Abp/Abp/AbpApplication.cs @@ -4,7 +4,7 @@ using Volo.Abp.Modularity; namespace Volo.Abp { - public class AbpApplication : IAbpApplication + public class AbpApplication : IDisposable { public Type StartupModuleType { get; } @@ -14,7 +14,7 @@ namespace Volo.Abp { StartupModuleType = startupModuleType; - services.AddSingleton(this); + services.AddSingleton(this); services.AddCoreAbpServices(); services.GetSingletonInstance().LoadAll(services, StartupModuleType); diff --git a/src/Volo.Abp/Abp/IAbpApplication.cs b/src/Volo.Abp/Abp/IAbpApplication.cs deleted file mode 100644 index e68154d127..0000000000 --- a/src/Volo.Abp/Abp/IAbpApplication.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace Volo.Abp -{ - public interface IAbpApplication : IDisposable - { - Type StartupModuleType { get; } - - void Initialize(IServiceProvider serviceProvider); - } -} \ No newline at end of file