Example #1
0
        //private readonly IPipeline _pipeline;

        public EventStream(Action <EventStreamConfigBuilder> configure)
        {
            var builder = new EventStreamConfigBuilder();

            configure(builder);

            _configuration = builder.BuildConfig();
        }
Example #2
0
        public static EventStreamBuilder Configure(Action <EventStreamConfigBuilder> configurationCallback)
        {
            var configBuilder = new EventStreamConfigBuilder();

            configurationCallback(configBuilder);
            var config = configBuilder.BuildConfig();

            return(new EventStreamBuilder(config));
        }