From d7612e0b8e88a2dd68810dad2295540a7b75ff6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sun, 8 Apr 2018 20:59:51 +0300 Subject: [PATCH] Added missing this to extension methods. --- .../AspNetCore/Hosting/AbpHostingEnvironmentExtensions.cs | 2 +- .../AbpAspNetCoreServiceCollectionExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Hosting/AbpHostingEnvironmentExtensions.cs b/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Hosting/AbpHostingEnvironmentExtensions.cs index 53609367c7..71ff4dc9ea 100644 --- a/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Hosting/AbpHostingEnvironmentExtensions.cs +++ b/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Hosting/AbpHostingEnvironmentExtensions.cs @@ -4,7 +4,7 @@ namespace Microsoft.AspNetCore.Hosting { public static class AbpHostingEnvironmentExtensions { - public static IConfigurationRoot GetConfiguration(IHostingEnvironment env, string fileName = "appsettings") + public static IConfigurationRoot BuildConfiguration(this IHostingEnvironment env, string fileName = "appsettings") { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) diff --git a/src/Volo.Abp.AspNetCore/Microsoft/Extensions/DependencyInjection/AbpAspNetCoreServiceCollectionExtensions.cs b/src/Volo.Abp.AspNetCore/Microsoft/Extensions/DependencyInjection/AbpAspNetCoreServiceCollectionExtensions.cs index fe755e78c4..c1d8eacb7e 100644 --- a/src/Volo.Abp.AspNetCore/Microsoft/Extensions/DependencyInjection/AbpAspNetCoreServiceCollectionExtensions.cs +++ b/src/Volo.Abp.AspNetCore/Microsoft/Extensions/DependencyInjection/AbpAspNetCoreServiceCollectionExtensions.cs @@ -4,7 +4,7 @@ namespace Microsoft.Extensions.DependencyInjection { public static class AbpAspNetCoreServiceCollectionExtensions { - public static IHostingEnvironment GetHostingEnvironment(IServiceCollection services) + public static IHostingEnvironment GetHostingEnvironment(this IServiceCollection services) { return services.GetSingletonInstance(); }