Show / Hide Table of Contents

Class SeltzrApplicationBuilderExtensions

Extension methods for the IApplicationBuilder interface.

Inheritance
Object
SeltzrApplicationBuilderExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Seltzr.dll
Syntax
C#
public static class SeltzrApplicationBuilderExtensions

Methods

| Improve this Doc View Source

AddSeltzr<TModel>(IApplicationBuilder, Action<SeltzrOptionsBuilder<TModel, NoUser>>)

Adds Seltzr middleware to the app at the root ("/") endpoint

C#
public static IApplicationBuilder AddSeltzr<TModel>(this IApplicationBuilder app, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler)
    where TModel : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

optionsHandlerAction<SeltzrOptionsBuilder<TModel, NoUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

| Improve this Doc View Source

AddSeltzr<TModel>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, NoUser>>)

Adds Seltzr middleware to the app

C#
public static IApplicationBuilder AddSeltzr<TModel>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler)
    where TModel : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, NoUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

| Improve this Doc View Source

AddSeltzr<TModel>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, NoUser>>, Action<IEndpointConventionBuilder>)

Adds Seltzr middleware to the app

C#
public static IApplicationBuilder AddSeltzr<TModel>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler, Action<IEndpointConventionBuilder> routeOptionsHandler)
    where TModel : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, NoUser>>

A handler to set options for this Seltzr API

routeOptionsHandlerAction<IEndpointConventionBuilder>

A handler to set ASP.NET Core options

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

| Improve this Doc View Source

AddSeltzr<TModel, TUser>(IApplicationBuilder, Action<SeltzrOptionsBuilder<TModel, TUser>>)

Adds Seltzr middleware to the app at the root ("/") endpoint

C#
public static IApplicationBuilder AddSeltzr<TModel, TUser>(this IApplicationBuilder app, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler)
    where TModel : class where TUser : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

optionsHandlerAction<SeltzrOptionsBuilder<TModel, TUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TUser

The user to authenticate with the API

| Improve this Doc View Source

AddSeltzr<TModel, TUser>(IApplicationBuilder, Dictionary<String, List<SeltzrOptions<TModel, TUser>>>)

Adds Seltzr middleware to the app using already built SeltzrOptions<TModel, TUser>. Not intended for application use.

C#
public static IApplicationBuilder AddSeltzr<TModel, TUser>(this IApplicationBuilder app, Dictionary<string, List<SeltzrOptions<TModel, TUser>>> options)
    where TModel : class where TUser : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

optionsDictionary<String, List<SeltzrOptions<TModel, TUser>>>

The options for Seltzr, keyed to their route patterns

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TUser

The user to authenticate with the API

| Improve this Doc View Source

AddSeltzr<TModel, TUser>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, TUser>>)

Adds Seltzr middleware to the app

C#
public static IApplicationBuilder AddSeltzr<TModel, TUser>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler)
    where TModel : class where TUser : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, TUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TUser

The user to authenticate with the API

| Improve this Doc View Source

AddSeltzr<TModel, TUser>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, TUser>>, Action<IEndpointConventionBuilder>)

Adds Seltzr middleware to the app

C#
public static IApplicationBuilder AddSeltzr<TModel, TUser>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler, Action<IEndpointConventionBuilder> routeOptionsHandler)
    where TModel : class where TUser : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, TUser>>

A handler to set options for this Seltzr API

routeOptionsHandlerAction<IEndpointConventionBuilder>

A handler to set ASP.NET Core options

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TUser

The user to authenticate with the API

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