|
|
|
@ -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?>(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |