Browse Source
Merge pull request #22821 from abpframework/auto-merge/rel-9-2/3708
Merge branch dev with rel-9.2
pull/22847/head
maliming
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
1 deletions
-
framework/src/Volo.Abp.Core/Volo/Abp/Modularity/ServiceConfigurationContext.cs
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using JetBrains.Annotations; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Abp.Modularity; |
|
|
|
@ -8,6 +9,13 @@ public class ServiceConfigurationContext |
|
|
|
{ |
|
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
public IConfiguration Configuration { |
|
|
|
get { |
|
|
|
return _configuration ??= Services.GetConfiguration(); |
|
|
|
} |
|
|
|
} |
|
|
|
private IConfiguration? _configuration; |
|
|
|
|
|
|
|
public IDictionary<string, object?> Items { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -29,4 +37,4 @@ public class ServiceConfigurationContext |
|
|
|
Services = Check.NotNull(services, nameof(services)); |
|
|
|
Items = new Dictionary<string, object?>(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |