Dela via


IMiddlewareFactory.Create(Type) Method

Definition

Creates a middleware instance for each request.

public:
 Microsoft::AspNetCore::Http::IMiddleware ^ Create(Type ^ middlewareType);
public Microsoft.AspNetCore.Http.IMiddleware Create (Type middlewareType);
public Microsoft.AspNetCore.Http.IMiddleware? Create (Type middlewareType);
abstract member Create : Type -> Microsoft.AspNetCore.Http.IMiddleware
Public Function Create (middlewareType As Type) As IMiddleware

Parameters

middlewareType
Type

The concrete Type of the IMiddleware.

Returns

The IMiddleware instance.

Applies to