Exemple #1
0
        /// <summary>
        /// Configure silo to use event hub persistent streams.
        /// </summary>
        public static ISiloHostBuilder AddEventHubStreams(
            this ISiloHostBuilder builder,
            string name,
            Action <SiloEventHubStreamConfigurator> configure)
        {
            var configurator = new SiloEventHubStreamConfigurator(name, builder);

            configure?.Invoke(configurator);
            return(builder);
        }
        /// <summary>
        /// Configure silo to use event hub persistent streams.
        /// </summary>
        public static ISiloBuilder AddEventHubStreams(
            this ISiloBuilder builder,
            string name,
            Action <ISiloEventHubStreamConfigurator> configure)
        {
            var configurator = new SiloEventHubStreamConfigurator(name,
                                                                  configureServicesDelegate => builder.ConfigureServices(configureServicesDelegate));

            configure?.Invoke(configurator);
            return(builder);
        }