Skip to main content

Class TaskuraiAspNetExtensions

Extension methods for setting up Taskurai services in an Microsoft.Extensions.DependencyInjection.IServiceCollection.

Assembly: Taskurai.AspNetCore.dll
Declaration
public static class TaskuraiAspNetExtensions

Methods

AddTaskuraiOptions(ITaskuraiServerBuilder, Action<TaskuraiOptions>)

Adds Taskurai specific options to an Taskurai.AspNetCore.ITaskuraiServerBuilder.

Declaration
public static ITaskuraiServerBuilder AddTaskuraiOptions(this ITaskuraiServerBuilder taskuraiBuilder, Action<TaskuraiOptions> configure)
Returns

Taskurai.AspNetCore.ITaskuraiServerBuilder: The same instance of the Taskurai.AspNetCore.ITaskuraiServerBuilder for chaining.

Parameters
TypeNameDescription
Taskurai.AspNetCore.ITaskuraiServerBuildertaskuraiBuilderThe Taskurai.AspNetCore.ITaskuraiServerBuilder.
System.Action<Taskurai.AspNetCore.TaskuraiOptions>configureA callback to configure the Taskurai options.

AddTaskurai(IServiceCollection)

Adds Taskurai services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

Declaration
public static ITaskuraiServerBuilder AddTaskurai(this IServiceCollection services)
Returns

Taskurai.AspNetCore.ITaskuraiServerBuilder: An Taskurai.AspNetCore.ITaskuraiServerBuilder that can be used to further configure the Taskurai services.

Parameters
TypeNameDescription
Microsoft.Extensions.DependencyInjection.IServiceCollectionservicesThe Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

AddTaskurai(IServiceCollection, Action<TaskuraiOptions>)

Adds Taskurai services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

Declaration
public static ITaskuraiServerBuilder AddTaskurai(this IServiceCollection services, Action<TaskuraiOptions> configure)
Returns

Taskurai.AspNetCore.ITaskuraiServerBuilder: An Taskurai.AspNetCore.ITaskuraiServerBuilder that can be used to further configure the Taskurai services.

Parameters
TypeNameDescription
Microsoft.Extensions.DependencyInjection.IServiceCollectionservicesThe Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.
System.Action<Taskurai.AspNetCore.TaskuraiOptions>configureAn System.Action%601 to configure the provided Taskurai.AspNetCore.TaskuraiOptions.