C# Class Unosquare.TenantCore.TenantCoreMiddleware

Owin Middlware to connect TenantCore to Owin
Inheritance: Microsoft.Owin.OwinMiddleware
Exibir arquivo Open project: unosquare/tenantcore

Public Properties

Property Type Description
OwinPropertyName string

Protected Properties

Property Type Description
Callback bool>.Func
Resolver ITenantResolver

Public Methods

Method Description
Invoke ( IOwinContext context ) : System.Threading.Tasks.Task

Method to receive a new request

TenantCoreMiddleware ( OwinMiddleware next, ITenantResolver resolver, bool>.Func callback = null ) : System

Initialize the Middleware with a Tenant's resolver

Method Details

Invoke() public method

Method to receive a new request
public Invoke ( IOwinContext context ) : System.Threading.Tasks.Task
context IOwinContext The OWIN Context
return System.Threading.Tasks.Task

TenantCoreMiddleware() public method

Initialize the Middleware with a Tenant's resolver
public TenantCoreMiddleware ( OwinMiddleware next, ITenantResolver resolver, bool>.Func callback = null ) : System
next OwinMiddleware The next Middleware
resolver ITenantResolver The Tenant's resolver
callback bool>.Func The Callback action
return System

Property Details

Callback protected_oe property

The Callback
protected Func Callback
return bool>.Func

OwinPropertyName public_oe static_oe property

Environment variable name
public static string OwinPropertyName
return string

Resolver protected_oe property

The Tenant Resolver
protected ITenantResolver Resolver
return ITenantResolver