RingDotNetfor Ring

Microsoft.AspNetCore.StaticFiles

8 wrapped types. Load them with using { "Microsoft.AspNetCore.StaticFiles" }. Click a class to open it.

DefaultFilesMiddleware class

Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware · assembly Microsoft.AspNetCore.StaticFiles

Constructors

new DefaultFilesMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<DefaultFilesOptions> options)

Ring: new DefaultFilesMiddleware(args) uses one constructor; the others are chosen by the parameter names: new DefaultFilesMiddleware().@New([ :param = value ]) or dnNew("DefaultFilesMiddleware",[ :param = value ]).

Methods

MethodRing call.NET overloads
InvokecallMethod("Invoke",[p1])Task Invoke(HttpContext context)
DirectoryBrowserMiddleware class

Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware · assembly Microsoft.AspNetCore.StaticFiles

Constructors

new DirectoryBrowserMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<DirectoryBrowserOptions> options)
new DirectoryBrowserMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, HtmlEncoder encoder, IOptions<DirectoryBrowserOptions> options)

Ring: new DirectoryBrowserMiddleware(args) uses one constructor; the others are chosen by the parameter names: new DirectoryBrowserMiddleware().@New([ :param = value ]) or dnNew("DirectoryBrowserMiddleware",[ :param = value ]).

Methods

MethodRing call.NET overloads
InvokecallMethod("Invoke",[p1])Task Invoke(HttpContext context)
FileExtensionContentTypeProvider class

Microsoft.AspNetCore.StaticFiles.FileExtensionContentTypeProvider · assembly Microsoft.AspNetCore.StaticFiles

Constructors

new FileExtensionContentTypeProvider()
new FileExtensionContentTypeProvider(IDictionary<string, string> mapping)

Ring: new FileExtensionContentTypeProvider(args) uses one constructor; the others are chosen by the parameter names: new FileExtensionContentTypeProvider().@New([ :param = value ]) or dnNew("FileExtensionContentTypeProvider",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
MappingsIDictionary<string, string>reado.Mappings

Methods

MethodRing call.NET overloads
TryGetContentTypeTryGetContentType(p1)bool TryGetContentType(string subpath, out string contentType)
HtmlDirectoryFormatter class

Microsoft.AspNetCore.StaticFiles.HtmlDirectoryFormatter · assembly Microsoft.AspNetCore.StaticFiles

Constructors

new HtmlDirectoryFormatter(HtmlEncoder encoder)

Ring: new HtmlDirectoryFormatter(args) uses one constructor; the others are chosen by the parameter names: new HtmlDirectoryFormatter().@New([ :param = value ]) or dnNew("HtmlDirectoryFormatter",[ :param = value ]).

Methods

MethodRing call.NET overloads
GenerateContentAsynccallMethod("GenerateContentAsync",[p1,p2])Task GenerateContentAsync(HttpContext context, IEnumerable<IFileInfo> contents)
IContentTypeProvider interface

Microsoft.AspNetCore.StaticFiles.IContentTypeProvider · assembly Microsoft.AspNetCore.StaticFiles

Methods

MethodRing call.NET overloads
TryGetContentTypeTryGetContentType(p1)bool TryGetContentType(string subpath, out string contentType)
IDirectoryFormatter interface

Microsoft.AspNetCore.StaticFiles.IDirectoryFormatter · assembly Microsoft.AspNetCore.StaticFiles

Methods

MethodRing call.NET overloads
GenerateContentAsynccallMethod("GenerateContentAsync",[p1,p2])Task GenerateContentAsync(HttpContext context, IEnumerable<IFileInfo> contents)
StaticFileMiddleware class

Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware · assembly Microsoft.AspNetCore.StaticFiles

Constructors

new StaticFileMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<StaticFileOptions> options, ILoggerFactory loggerFactory)

Ring: new StaticFileMiddleware(args) uses one constructor; the others are chosen by the parameter names: new StaticFileMiddleware().@New([ :param = value ]) or dnNew("StaticFileMiddleware",[ :param = value ]).

Methods

MethodRing call.NET overloads
InvokecallMethod("Invoke",[p1])Task Invoke(HttpContext context)
StaticFileResponseContext class

Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext · assembly Microsoft.AspNetCore.StaticFiles

Constructors

new StaticFileResponseContext(HttpContext context, IFileInfo file)

Ring: new StaticFileResponseContext(args) uses one constructor; the others are chosen by the parameter names: new StaticFileResponseContext().@New([ :param = value ]) or dnNew("StaticFileResponseContext",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ContextHttpContextreado.Context
FileIFileInforeado.File