/// <summary>
        /// Configure silo to use SQS persistent streams.
        /// </summary>
        public static ISiloHostBuilder AddSqsStreams(this ISiloHostBuilder builder, string name, Action <SiloSqsStreamConfigurator> configure)
        {
            var configurator = new SiloSqsStreamConfigurator(name, builder);

            configure?.Invoke(configurator);
            return(builder);
        }
Пример #2
0
        /// <summary>
        /// Configure silo to use SQS persistent streams.
        /// </summary>
        public static ISiloBuilder AddSqsStreams(this ISiloBuilder builder, string name, Action <SiloSqsStreamConfigurator> configure)
        {
            var configurator = new SiloSqsStreamConfigurator(name,
                                                             configureServicesDelegate => builder.ConfigureServices(configureServicesDelegate));

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