C# Class Bah.Core.Site.Multitenancy.RouteDataItemTenantIdentificationStrategy

Inheritance: ITenantIdentificationStrategy
Show file Open project: mppa-git/aspnet4-multitenant-framework Class Usage Examples

Public Methods

Method Description
RouteDataItemTenantIdentificationStrategy ( string parameterName ) : System

Create a new RouteDataItemTenantIdentificationStrategy for the specified parameter name.

TryIdentifyTenant ( object &tenantId ) : bool

Attempts to identify the tenant from the route data parameters.

Method Details

RouteDataItemTenantIdentificationStrategy() public method

Create a new RouteDataItemTenantIdentificationStrategy for the specified parameter name.
/// Thrown if is . /// /// Thrown if is empty. ///
public RouteDataItemTenantIdentificationStrategy ( string parameterName ) : System
parameterName string /// The request parameter name that holds the tenant identifier. ///
return System

TryIdentifyTenant() public method

Attempts to identify the tenant from the route data parameters.
public TryIdentifyTenant ( object &tenantId ) : bool
tenantId object The current tenant identifier.
return bool