using DS.Module.Core.Extensions; namespace DS.Module.Core.Modules; /// /// 自定义应用上下文 /// public class ApplicationContext : IServiceProviderAccessor { public ApplicationContext(IServiceProvider serviceProvider) { serviceProvider.NotNull(nameof(serviceProvider)); ServiceProvider = serviceProvider; } public IServiceProvider ServiceProvider { get; set; } }