mirror of https://github.com/abpframework/abp
parent
8972ba8f69
commit
ad80d628d3
@ -0,0 +1,14 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Volo.Abp.MultiTenancy;
|
||||
|
||||
namespace Volo.Abp.AspNetCore.MultiTenancy
|
||||
{
|
||||
public static class TenantResolveContextExtensions
|
||||
{
|
||||
public static AspNetCoreMultiTenancyOptions GetAspNetCoreMultiTenancyOptions(this ITenantResolveContext context)
|
||||
{
|
||||
return context.ServiceProvider.GetRequiredService<IOptionsSnapshot<AspNetCoreMultiTenancyOptions>>().Value;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue