-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
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.