You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
428 B
C#

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