public void Configure(IManagementConfiguration managementConfiguration)
        {
            if (!managementConfiguration.HasDataStoreRepository)
            {
                Log.Warning(string.Format(ManagementResources.DataStoreRepositoryRequired,
                                          "Shuttle.Management.Subscriptions"));
            }

            container.Register(Component.For<IReflectionService>()
                                   .ImplementedBy<ReflectionService>());

            container.Register(Component.For<IDatabaseConnectionCache>()
                                   .ImplementedBy<ThreadStaticDatabaseConnectionCache>());

            container.Register(Component.For<IDbConnectionConfiguration>()
                                   .ImplementedBy<DbConnectionConfiguration>());

            container.Register(Component.For<IDbConnectionConfigurationProvider>()
                                   .ImplementedBy<ManagementDbConnectionConfigurationProvider>());

            container.RegisterDataAccessCore();

            ((ManagementDbConnectionConfigurationProvider) container.Resolve<IDbConnectionConfigurationProvider>())
                .AddProvider(new DataStoreDbConnectionConfigurationProvider(managementConfiguration));

            container.RegisterDataAccess("Shuttle.Management.Subscriptions");

            container.RegisterSingleton<ISubscriptionRequestManagementPresenter, SubscriptionRequestManagementPresenter>();
            container.RegisterSingleton<ISubscriptionManagementPresenter, SubscriptionManagementPresenter>();
        }
        public ManagementShellPresenter(IManagementShellView view)
        {
            this.view = view;

            taskQueue = new TaskQueue();

            ActionAppender.Register(view.LogMessage);

            managementConfiguration = new ManagementConfiguration();

            managementConfiguration.Initialize();
        }
 public void Configure(IManagementConfiguration managementConfiguration)
 {
 }
        public DataStoreDbConnectionConfigurationProvider(IManagementConfiguration managementConfiguration)
        {
            Guard.AgainstNull(managementConfiguration, "managementConfiguration");

            this.managementConfiguration = managementConfiguration;
        }