Show / Hide Table of Contents

Class TenantHttpContextExtensions

This class contains extension methods for the HTTP context.

Inheritance
System.Object
TenantHttpContextExtensions
Namespace: Talegen.AspNetCore.Multitenant
Assembly: Talegen.AspNetCore.Multitenant.dll
Syntax
public static class TenantHttpContextExtensions : object

Methods

| Improve this Doc View Source

GetTenantContext<TTenant>(HttpContext)

Gets the tenant context from the current Http context.

Declaration
public static ITenantContext<TTenant> GetTenantContext<TTenant>(this HttpContext context)
    where TTenant : class, ITenant, new()
Parameters
Type Name Description
HttpContext context

The context.

Returns
Type Description
ITenantContext<TTenant>

Returns the tenant context if found.

Type Parameters
Name Description
TTenant

The type of the tenant.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright (c) Talegen, LLC. All rights reserved.