/// <summary> /// Creates new instance of <see cref="HostMiddleware"/>. /// </summary> public HostMiddleware( RequestDelegate next, ISystemHost host, ITenantSelector tenantSelector, ILoggerFactory loggerFactory) { _next = next; _host = host; _tenantSelector = tenantSelector; _logger = loggerFactory.CreateLogger<HostMiddleware>(); }
/// <summary> /// Initializes a new instance of the TenantViewEngine class that resolves views based upon the tenant for the request /// </summary> /// <param name="tenantSelector">Tenant selector used to resolve views</param> /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="tenantSelector"/> is null</exception> public TenantViewEngine(ITenantSelector tenantSelector) { Ensure.Argument.NotNull(tenantSelector, "tenantSelector"); this.tenantSelector = tenantSelector; }
/// <summary> /// Initializes a new instance of the TenantViewEngine class that resolves views based upon the tenant for the request /// </summary> /// <param name="tenantSelector">Tenant selector used to resolve views</param> /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="tenantSelector"/> is null</exception> public TenantViewEngine(ITenantSelector tenantSelector) { Ensure.Argument.NotNull(tenantSelector, "tenantSelector"); this.tenantSelector = tenantSelector; }
/// <summary> /// Initializes a new instance of the TenantContainerResolver class that resolves a module by a tenant /// </summary> /// <param name="tenantSelector">Tenant selector used to resolve module</param> /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="tenantSelector"/> is null</exception> public TenantContainerResolver(ITenantSelector tenantSelector) { Ensure.Argument.NotNull(tenantSelector, "tenantSelector"); this.tenantSelector = tenantSelector; }
/// <summary> /// Initializes a new instance of the TenantContainerResolver class that resolves a module by a tenant /// </summary> /// <param name="tenantSelector">Tenant selector used to resolve module</param> /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="tenantSelector"/> is null</exception> public TenantContainerResolver(ITenantSelector tenantSelector) { Ensure.Argument.NotNull(tenantSelector, "tenantSelector"); this.tenantSelector = tenantSelector; }