public static IEventStoreConnection Default() { var settings = ConnectionSettings.Create() .KeepReconnecting() .UseConsoleLogger(); var connection = EventStoreConnection.Create(settings, IPEndPointFactory.DefaultTcp()); connection.Connect(); return(connection); }
public ProjectionContext(IConsole console) { if (console == null) { throw new ArgumentNullException("console"); } var logger = new ConsoleLogger(); _projections = new ProjectionsManager(logger, IPEndPointFactory.DefaultHttp()); _console = console; _currentProjections = GetCurrentProjections(); }