public ManualTriggerFactory(ManualTriggerService service) { _service = service ?? throw new ArgumentNullException(nameof(service)); }
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)); }