C# Class Unosquare.TenantCore.HostNameTenantResolver

Tenant Resolver class using request's hostname as key to find a possible Tenant
Inheritance: TenantResolverBase, ITenantResolver
Exibir arquivo Open project: unosquare/tenantcore

Public Methods

Method Description
HostNameTenantResolver ( IEnumerable tenants, string databaseIdentifier = null ) : System.Collections.Generic

Instances a new resolver with a tenant list

HostNameTenantResolver ( string databaseIdentifier = null ) : System.Collections.Generic

Instances a new Resolver without tenants

Resolve ( IOwinRequest request ) : ITenant

Resolves a tenant request using hostname

Method Details

HostNameTenantResolver() public method

Instances a new resolver with a tenant list
public HostNameTenantResolver ( IEnumerable tenants, string databaseIdentifier = null ) : System.Collections.Generic
tenants IEnumerable The list of tenants
databaseIdentifier string The Database Identifier
return System.Collections.Generic

HostNameTenantResolver() public method

Instances a new Resolver without tenants
public HostNameTenantResolver ( string databaseIdentifier = null ) : System.Collections.Generic
databaseIdentifier string The Database Identifier
return System.Collections.Generic

Resolve() public method

Resolves a tenant request using hostname
public Resolve ( IOwinRequest request ) : ITenant
request IOwinRequest The request
return ITenant