Table of Contents

Class DataDictionaryDocumentFilter

Namespace
JJMasterData.WebApi.Swagger
Assembly
JJMasterData.WebApi.dll
public class DataDictionaryDocumentFilter : IDocumentFilter
Inheritance
DataDictionaryDocumentFilter
Implements
Inherited Members

Constructors

DataDictionaryDocumentFilter(IHttpContextAccessor, IServiceProvider)

public DataDictionaryDocumentFilter(IHttpContextAccessor httpContextAccessor, IServiceProvider serviceProvider)

Parameters

httpContextAccessor IHttpContextAccessor
serviceProvider IServiceProvider

Properties

ServiceProvider

protected IServiceProvider ServiceProvider { get; }

Property Value

IServiceProvider

Methods

Apply(OpenApiDocument, DocumentFilterContext)

public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)

Parameters

swaggerDoc OpenApiDocument
context DocumentFilterContext

IsAuthenticated(HttpContext)

protected virtual bool IsAuthenticated(HttpContext httpContext)

Parameters

httpContext HttpContext

Returns

bool

IsElementAllowedAsync(string)

protected virtual ValueTask<bool> IsElementAllowedAsync(string elementName)

Parameters

elementName string

Returns

ValueTask<bool>