Show / Hide Table of Contents

Class SeltzrOptions<TModel, TUser>

Options for a specific Seltzr route

Inheritance
Object
SeltzrOptions<TModel, TUser>
Namespace: Seltzr.Options
Assembly: Seltzr.dll
Syntax
C#
public class SeltzrOptions<TModel, TUser>
    where TModel : class where TUser : class
Type Parameters
TModel

The type of model this route handles

TUser

The type of authenticated user context

Properties

| Improve this Doc View Source

AuthProviders

Gets or sets a list of providers available to authenticate the request

C#
public List<IAuthProvider<TModel, TUser>> AuthProviders { get; set; }
Property Value
List<IAuthProvider<TModel, TUser>>
| Improve this Doc View Source

BodyParsers

Gets or sets the parsers available to parse a request body

C#
public List<IBodyParser<TModel>> BodyParsers { get; set; }
Property Value
List<IBodyParser<TModel>>
| Improve this Doc View Source

Conditions

Gets or sets a list of conditions that the request must meet

C#
public List<ICondition<TModel, TUser>> Conditions { get; set; }
Property Value
List<ICondition<TModel, TUser>>
| Improve this Doc View Source

ExceptionHandlers

Gets or sets the list of exception handlers for this route

C#
public List<IExceptionHandler> ExceptionHandlers { get; set; }
Property Value
List<IExceptionHandler>
| Improve this Doc View Source

Filters

Gets or sets a list of filters to pare down the dataset

C#
public List<IFilter<TModel, TUser>> Filters { get; set; }
Property Value
List<IFilter<TModel, TUser>>
| Improve this Doc View Source

FormattingOptions

Gets or sets any options for the ResultWriter

C#
public FormattingOptions FormattingOptions { get; set; }
Property Value
FormattingOptions
| Improve this Doc View Source

ModelProvider

Gets or sets the provider for the API's models

C#
public IModelProvider<TModel, TUser> ModelProvider { get; set; }
Property Value
IModelProvider<TModel, TUser>
| Improve this Doc View Source

Operation

Gets or sets the operation to perform on the dataset, if any

C#
public IOperation<TModel, TUser> Operation { get; set; }
Property Value
IOperation<TModel, TUser>
| Improve this Doc View Source

ParserOptions

Gets or sets the options for parsing request bodies

C#
public ParserOptions ParserOptions { get; set; }
Property Value
ParserOptions
| Improve this Doc View Source

PostOpActions

Gets or sets the list of post-operation actions for this route

C#
public List<IPostOpAction<TModel, TUser>> PostOpActions { get; set; }
Property Value
List<IPostOpAction<TModel, TUser>>
| Improve this Doc View Source

PreOpActions

Gets or sets the list of pre-operation actions for this route

C#
public List<IPreOpAction<TModel, TUser>> PreOpActions { get; set; }
Property Value
List<IPreOpAction<TModel, TUser>>
| Improve this Doc View Source

RequestMethods

Gets or sets the request methods these options match

C#
public HashSet<string> RequestMethods { get; set; }
Property Value
HashSet<String>
| Improve this Doc View Source

ResponseType

Gets or sets the type of Response<TModel> to wrap responses in

C#
public Type ResponseType { get; set; }
Property Value
Type
| Improve this Doc View Source

ResultWriter

Gets or sets the result writer for this route

C#
public IResultWriter<TModel, TUser> ResultWriter { get; set; }
Property Value
IResultWriter<TModel, TUser>
| Improve this Doc View Source

RoutePattern

Gets or sets the pattern of the route that these options match with

C#
public string RoutePattern { get; set; }
Property Value
String

Methods

| Improve this Doc View Source

Copy()

Makes a copy of this options object and returns it

C#
public SeltzrOptions<TModel, TUser> Copy()
Returns

SeltzrOptions<TModel, TUser>

The copy of this SeltzrOptions<TModel, TUser>

  • Improve this Doc
  • View Source
Back to top Generated by DocFX