public Bootstrapper(DispatcherLauncher launcher, ISubscriptionBus subscriptionBus, IPublishingBus publishingBus)
 {
     Launcher = launcher;
     SubscriptionBus = subscriptionBus;
     PublishingBus = publishingBus;
     ThreadExecutor = new ThreadExecutor();
 }
        public DispatcherLauncher(ISubscriptionBus subscriptionBus)
        {
            DispatcherLauncherId = DispatcherLauncherId.New();
            SubscriptionBus = subscriptionBus;
            LaunchRecords = new List<LaunchRecord>();

            LaunchConfirmationSubscriptionId = SubscriptionId.FromString(
                LaunchConfirmationSubscriptionIdPrefix + DispatcherLauncherId
            );
            SubscribeToLaunchConfirmations();
        }
        public ComputationalUnitSupervisor(Bootstrapper bootstrapper, ISubscriptionBus subscriptionBus, IPublishingBus publishingBus,
            IReceivingBus receivingBus)
        {
            Debug.Assert(IntervalForCheckingIfDispatcherIsOnline < MaxTimeDispatcherCanBeSilent, "IntervalForCheckingIfDispatcherIsOnline < MaxTimeDispatcherCanBeSilent");

            AttachedDispatchers = new List<DispatcherId>();
            OfflineDispatchers = new List<DispatcherId>();
            Bootstrapper = bootstrapper;
            SubscriptionBus = subscriptionBus;
            PublishingBus = publishingBus;
            ReceivingBus = receivingBus;

            IsComputationalUnitRestorationEnabled = true;
        }
        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();
        }
        public StepsContext()
        {
            DependencyResolver.Reset();
            DependencyResolver.Initialize();

            DispatcherLifeSpan = new DispatcherLifeSpan
            {
                Mode = DispatcherLifeSpanMode.UntilTimedOut,
                Timeout = TimeSpan.FromSeconds(15)
            };
            BootstrapSettings = new BootstrapSettings();

            WorkDispatchersOnline = new List<DispatcherId>();
            WorkDispatchersRestarted = new List<DispatcherId>();

            SubscriptionBus = DependencyResolver.Get<ISubscriptionBus>();
            SendingBus = DependencyResolver.Get<ISendingBus>();
            Supervisor = DependencyResolver.Get<Supervisor>();

            ClearAmqpResources();
        }
 public InProcessDispatcherLauncher(ISubscriptionBus subscriptionBus) 
     : base(subscriptionBus)
 {
 }