Skip to content

Application Bootstrap within a Silo #19

@witterlee

Description

@witterlee

please give a code way to boostrap silo

 var BOOTSTARTP_PROVIDER_CONFIGS_NAME = "Bootstrap";
            ProviderCategoryConfiguration providerConfiguration;
            if (!siloHost.Config.Globals.ProviderConfigurations.TryGetValue(BOOTSTARTP_PROVIDER_CONFIGS_NAME, out providerConfiguration))
            {
                providerConfiguration = new ProviderCategoryConfiguration()
                {
                    Name = BOOTSTARTP_PROVIDER_CONFIGS_NAME,
                    Providers = new Dictionary<string, IProviderConfiguration>()
                };
            }

            var eventStoreProvider = new ProviderConfiguration(new Dictionary<string, string>(), typeof(EventStoreInitBootstrapProvider).FullName, "EventStoreInitBootstrapProvider");
            providerConfiguration.Providers.Add("EventStoreInitBootstrapProvider", eventStoreProvider);

            siloHost.Config.Globals.ProviderConfigurations[BOOTSTARTP_PROVIDER_CONFIGS_NAME] = providerConfiguration;

but failed. I read the source code ,find some class have method like AddProvider ,but internal

please give a way to give the Application Bootstrap by code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions