public StepsContext() { DependencyResolver.Reset(); DependencyResolver.Initialize(); Supervisor = DependencyResolver.Get<Supervisor>(); SubscriptionBus = DependencyResolver.Get<ISubscriptionBus>(); SendingBus = DependencyResolver.Get<ISendingBus>(); Launcher = DependencyResolver.Get<DispatcherLauncher>(); WorkDispatchersOffline = new List<DispatcherId>(); WorkDispatchersOnline = new List<DispatcherId>(); ClearAmqpResources(); }
public StepsContext() { DependencyResolver.Reset(); DependencyResolver.Initialize(); DispatcherLifeSpan = new DispatcherLifeSpan { Mode = DispatcherLifeSpanMode.UntilTimedOut, Timeout = TimeSpan.FromSeconds(10) }; BootstrapSettings = new BootstrapSettings(); SubscriptionBus = DependencyResolver.Get<ISubscriptionBus>(); JobsExecuted = new List<Type>(); Launcher = DependencyResolver.Get<DispatcherLauncher>(); Bootstrapper = DependencyResolver.Get<Bootstrapper>(); ClearAmqpResources(); }