Class TaskuraiAspNetExtensions
Extension methods for setting up Taskurai services in an Microsoft.Extensions.DependencyInjection.IServiceCollection
.
Assembly: Taskurai.AspNetCore.dll
public static class TaskuraiAspNetExtensions
Methods
AddTaskuraiOptions(ITaskuraiServerBuilder, Action<TaskuraiOptions>)
Adds Taskurai specific options to an Taskurai.AspNetCore.ITaskuraiServerBuilder.
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
Type | Name | Description |
---|---|---|
Taskurai.AspNetCore.ITaskuraiServerBuilder | taskuraiBuilder | The Taskurai.AspNetCore.ITaskuraiServerBuilder. |
System.Action<Taskurai.AspNetCore.TaskuraiOptions> | configure | A callback to configure the Taskurai options. |
AddTaskurai(IServiceCollection)
Adds Taskurai services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection
.
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
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to. |
AddTaskurai(IServiceCollection, Action<TaskuraiOptions>)
Adds Taskurai services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection
.
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
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to. |
System.Action<Taskurai.AspNetCore.TaskuraiOptions> | configure | An System.Action%601 to configure the provided Taskurai.AspNetCore.TaskuraiOptions. |