示例#1
0
 public static CsissorsBuilder AddTask <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this CsissorsBuilder builder, string taskName, TaskConfiguration taskConfiguration, Func <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, Task> taskFunc) => builder.AddTask(taskName, taskConfiguration, taskFunc);
示例#2
0
 public static CsissorsBuilder AddDynamicTask <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this CsissorsBuilder builder, string taskName, Func <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, Task> taskFunc) => builder.AddDynamicTask(taskName, taskFunc);
示例#3
0
 public static CsissorsBuilder AddTask <T1, T2, T3, T4>(this CsissorsBuilder builder, string taskName, TaskConfiguration taskConfiguration, Func <T1, T2, T3, T4, Task> taskFunc) => builder.AddTask(taskName, taskConfiguration, taskFunc);
示例#4
0
 public static CsissorsBuilder AddDynamicTask(this CsissorsBuilder builder, string taskName, Func <Task> taskFunc) => builder.AddDynamicTask(taskName, taskFunc);
示例#5
0
 public static CsissorsBuilder AddDynamicTask <T1, T2, T3, T4, T5>(this CsissorsBuilder builder, string taskName, Func <T1, T2, T3, T4, T5, Task> taskFunc) => builder.AddDynamicTask(taskName, taskFunc);
示例#6
0
 public static CsissorsBuilder AddInMemoryRepository(this CsissorsBuilder builder)
 {
     builder.Services.AddSingleton <IRepositoryFactory, InMemoryRepository>();
     return(builder);
 }
示例#7
0
 public static CsissorsBuilder AddMiddleware(this CsissorsBuilder builder, Func <ITaskContext, Func <Task>, Task> @delegate)
 {
     builder.Services.AddSingleton <IMiddleware>(_ => new DelegateMiddleware(@delegate));
     return(builder);
 }
示例#8
0
 public static CsissorsBuilder AddMiddleware <T>(this CsissorsBuilder builder, Func <IServiceProvider, T> factory) where T : class, IMiddleware
 {
     builder.Services.AddSingleton <IMiddleware, T>(factory);
     return(builder);
 }
示例#9
0
 public static CsissorsBuilder AddMiddleware <T>(this CsissorsBuilder builder) where T : class, IMiddleware
 {
     builder.Services.AddSingleton <IMiddleware, T>();
     return(builder);
 }
示例#10
0
 public static CsissorsBuilder ConfigureServices(this CsissorsBuilder builder, Action <IServiceCollection> callback)
 {
     callback(builder.Services);
     return(builder);
 }