private static void enableBuiltInJobs(BehaviorGraph graph) { if (graph.Settings.Get <TransportSettings>().Enabled) { var jobs = graph.Settings.Get <PollingJobSettings>(); jobs.AddJob(PollingJobChain.For <DelayedEnvelopeProcessor, TransportSettings>(x => x.DelayMessagePolling)); jobs.AddJob(PollingJobChain.For <ExpiringListenerCleanup, TransportSettings>(x => x.ListenerCleanupPolling)); jobs.AddJob(PollingJobChain.For <HealthMonitorPollingJob, HealthMonitoringSettings>(x => x.Interval)); jobs.AddJob(PollingJobChain.For <SubscriptionRefreshJob, TransportSettings>(x => x.SubscriptionRefreshPolling)); } }
public void chain_is_definitely_a_polling_job() { PollingJobChain.For <AJob, TransportSettings>(x => x.DelayMessagePolling) .IsPollingJob().ShouldBeTrue(); }
protected override void beforeEach() { var definition = PollingJobChain.For <APollingJob, PollingJobSettings>(x => x.Polling); Services.Inject(definition); }