C# Class Unosquare.TenantCore.HostNameTenantResolver

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

Méthodes publiques

Méthode 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 méthode

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
Résultat System.Collections.Generic

HostNameTenantResolver() public méthode

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

Resolve() public méthode

Resolves a tenant request using hostname
public Resolve ( IOwinRequest request ) : ITenant
request IOwinRequest The request
Résultat ITenant