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