//private readonly IPipeline _pipeline; public EventStream(Action <EventStreamConfigBuilder> configure) { var builder = new EventStreamConfigBuilder(); configure(builder); _configuration = builder.BuildConfig(); }
public static EventStreamBuilder Configure(Action <EventStreamConfigBuilder> configurationCallback) { var configBuilder = new EventStreamConfigBuilder(); configurationCallback(configBuilder); var config = configBuilder.BuildConfig(); return(new EventStreamBuilder(config)); }