Share via


RewriteMiddleware Constructors

Definition

Overloads

RewriteMiddleware(RequestDelegate, IHostingEnvironment, ILoggerFactory, RewriteOptions)

Creates a new instance of RewriteMiddleware

RewriteMiddleware(RequestDelegate, IHostingEnvironment, ILoggerFactory, IOptions<RewriteOptions>)

Creates a new instance of RewriteMiddleware

RewriteMiddleware(RequestDelegate, IWebHostEnvironment, ILoggerFactory, IOptions<RewriteOptions>)

Creates a new instance of RewriteMiddleware

RewriteMiddleware(RequestDelegate, IHostingEnvironment, ILoggerFactory, RewriteOptions)

Creates a new instance of RewriteMiddleware

public:
 RewriteMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public RewriteMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Rewrite.RewriteOptions options);
new Microsoft.AspNetCore.Rewrite.RewriteMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteMiddleware
Public Sub New (next As RequestDelegate, hostingEnvironment As IHostingEnvironment, loggerFactory As ILoggerFactory, options As RewriteOptions)

Parameters

next
RequestDelegate

The delegate representing the next middleware in the request pipeline.

hostingEnvironment
IHostingEnvironment

The Hosting Environment.

loggerFactory
ILoggerFactory

The Logger Factory.

options
RewriteOptions

The middleware options, containing the rules to apply.

Applies to

RewriteMiddleware(RequestDelegate, IHostingEnvironment, ILoggerFactory, IOptions<RewriteOptions>)

Source:
RewriteMiddleware.cs
Source:
RewriteMiddleware.cs

Creates a new instance of RewriteMiddleware

public:
 RewriteMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Rewrite::RewriteOptions ^> ^ options);
public RewriteMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Rewrite.RewriteOptions> options);
new Microsoft.AspNetCore.Rewrite.RewriteMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Rewrite.RewriteOptions> -> Microsoft.AspNetCore.Rewrite.RewriteMiddleware
Public Sub New (next As RequestDelegate, hostingEnvironment As IHostingEnvironment, loggerFactory As ILoggerFactory, options As IOptions(Of RewriteOptions))

Parameters

next
RequestDelegate

The delegate representing the next middleware in the request pipeline.

hostingEnvironment
IHostingEnvironment

The Hosting Environment.

loggerFactory
ILoggerFactory

The Logger Factory.

options
IOptions<RewriteOptions>

The middleware options, containing the rules to apply.

Applies to

RewriteMiddleware(RequestDelegate, IWebHostEnvironment, ILoggerFactory, IOptions<RewriteOptions>)

Source:
RewriteMiddleware.cs

Creates a new instance of RewriteMiddleware

public:
 RewriteMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnvironment, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Rewrite::RewriteOptions ^> ^ options);
public RewriteMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Rewrite.RewriteOptions> options);
new Microsoft.AspNetCore.Rewrite.RewriteMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Rewrite.RewriteOptions> -> Microsoft.AspNetCore.Rewrite.RewriteMiddleware
Public Sub New (next As RequestDelegate, hostingEnvironment As IWebHostEnvironment, loggerFactory As ILoggerFactory, options As IOptions(Of RewriteOptions))

Parameters

next
RequestDelegate

The delegate representing the next middleware in the request pipeline.

hostingEnvironment
IWebHostEnvironment

The Hosting Environment.

loggerFactory
ILoggerFactory

The Logger Factory.

options
IOptions<RewriteOptions>

The middleware options, containing the rules to apply.

Applies to