Share via


MiddlewareFactory.Create(Type) Method

Definition

Creates a middleware instance for each request.

public:
 virtual 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
override this.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.

Implements

Applies to