Table of Contents

Class BiwenQuickApiOptions

Namespace
Biwen.QuickApi
Assembly
Biwen.QuickApi.dll
public class BiwenQuickApiOptions
Inheritance
BiwenQuickApiOptions
Inherited Members
Extension Methods

Constructors

BiwenQuickApiOptions()

public BiwenQuickApiOptions()

Fields

Key

配置文件中定位Key

public const string Key = "BiwenQuickApi:QuickApi"

Field Value

string

Properties

EnableAntiForgeryTokens

默认:true 是否启动防伪令牌检测,如果启动,会自动注册中间件,请确保客户端请求时带上__RequestVerificationToken参数

public bool EnableAntiForgeryTokens { get; set; }

Property Value

bool

EnablePubSub

默认:true 是否启动发布订阅

public bool EnablePubSub { get; set; }

Property Value

bool

EnableScheduling

默认:true 是否启动ScheduleTask

public bool EnableScheduling { get; set; }

Property Value

bool

RoutePrefix

全局路径前缀

public string RoutePrefix { get; set; }

Property Value

string

UseQuickApiExceptionResultBuilder

使用QuickApi的方式返回规范化异常 默认:false,如果:false 仅返回:500

public bool UseQuickApiExceptionResultBuilder { get; set; }

Property Value

bool