コード例 #1
0
 public ManualTriggerFactory(ManualTriggerService service)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
コード例 #2
0
 public ManualTrigger(ManualTriggerService service, Action callback)
 {
     _callback = callback ?? throw new ArgumentNullException(nameof(callback));
     _service  = service ?? throw new ArgumentNullException(nameof(service));
 }
コード例 #3
0
 public static IServiceCollection RegisterManualTrigger(this IServiceCollection services, ManualTriggerService service)
 {
     services.AddSingleton(service);
     return(services.RegisterCollectionRuleTrigger <ManualTriggerFactory>(ManualTrigger.TriggerName));
 }