Class SeltzrOptions<TModel, TUser>
Options for a specific Seltzr route
Namespace: Seltzr.Options
Assembly: Seltzr.dll
Syntax
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
Gets or sets a list of providers available to authenticate the request
public List<IAuthProvider<TModel, TUser>> AuthProviders { get; set; }
Property Value
List<IAuthProvider<TModel, TUser>>Gets or sets the parsers available to parse a request body
public List<IBodyParser<TModel>> BodyParsers { get; set; }
Property Value
List<IBodyParser<TModel>>Gets or sets a list of conditions that the request must meet
public List<ICondition<TModel, TUser>> Conditions { get; set; }
Property Value
List<ICondition<TModel, TUser>>Gets or sets the list of exception handlers for this route
public List<IExceptionHandler> ExceptionHandlers { get; set; }
Property Value
List<IExceptionHandler>Gets or sets a list of filters to pare down the dataset
public List<IFilter<TModel, TUser>> Filters { get; set; }
Property Value
List<IFilter<TModel, TUser>>Gets or sets any options for the ResultWriter
public FormattingOptions FormattingOptions { get; set; }
Property Value
FormattingOptionsGets or sets the provider for the API's models
public IModelProvider<TModel, TUser> ModelProvider { get; set; }
Property Value
IModelProvider<TModel, TUser>Gets or sets the operation to perform on the dataset, if any
public IOperation<TModel, TUser> Operation { get; set; }
Property Value
IOperation<TModel, TUser>Gets or sets the options for parsing request bodies
public ParserOptions ParserOptions { get; set; }
Property Value
ParserOptionsGets or sets the list of post-operation actions for this route
public List<IPostOpAction<TModel, TUser>> PostOpActions { get; set; }
Property Value
List<IPostOpAction<TModel, TUser>>Gets or sets the list of pre-operation actions for this route
public List<IPreOpAction<TModel, TUser>> PreOpActions { get; set; }
Property Value
List<IPreOpAction<TModel, TUser>>Gets or sets the request methods these options match
public HashSet<string> RequestMethods { get; set; }
Property Value
HashSet<String>Gets or sets the type of Response<TModel> to wrap responses in
public Type ResponseType { get; set; }
Property Value
TypeGets or sets the result writer for this route
public IResultWriter<TModel, TUser> ResultWriter { get; set; }
Property Value
IResultWriter<TModel, TUser>Gets or sets the pattern of the route that these options match with
public string RoutePattern { get; set; }
Property Value
StringMethods
Makes a copy of this options object and returns it
public SeltzrOptions<TModel, TUser> Copy()
Returns
SeltzrOptions<TModel, TUser>
The copy of this SeltzrOptions<TModel, TUser>