Пример #1
0
        public static ClusterConfiguration GetClusterConfiguration()

        {
            LogManager.LogConsumers.Add(new EventSourceLogger());

            var config = new ClusterConfiguration();

            config.Globals.ReminderServiceType = GlobalConfiguration.ReminderServiceProviderType.AzureTable;
            config.Globals.DataConnectionStringForReminders = "UseDevelopmentStorage=true";

            config.Globals.DataConnectionString = "UseDevelopmentStorage=true";

            config.Globals.RegisterBootstrapProvider <BootstrapProvider>("booter");

            config.Defaults.StartupTypeName = typeof(ClusterStartup).AssemblyQualifiedName;

            // Used for setting up event sourcing.
            //config.AddStateStorageBasedLogConsistencyProvider("StateStorage");

            config.AddAzureBlobStorageProvider("BlobStorage");



            return(config);
        }
Пример #2
0
 private static void AdjustConfig(ClusterConfiguration config)
 {
     // register stream provider
     config.Globals.RegisterStreamProvider <EventHubStreamProvider>(StreamProviderName, BuildProviderSettings());
     config.AddAzureBlobStorageProvider(ImplicitSubscription_RecoverableStream_CollectorGrain.StorageProviderName);
 }