public static async Task SetupNode() { eventStoreIsolation = IsolationFactory.StartIsolation( testsSettings.EventStoreIsolationMode, testsSettings.EventStoreIsolationCommand, testsSettings.EventStoreIsolationArguments); if (connection == null) { connection = await SetupConnection(); } }
public static async Task SetupNode() { eventStoreIsolation = IsolationFactory.StartIsolation( testsSettings.EventStoreIsolationMode, testsSettings.EventStoreIsolationCommand, testsSettings.EventStoreIsolationArguments); if (connection == null) { var settings = ConnectionSettings .Create() .KeepReconnecting() .FailOnNoServerResponse() .KeepRetrying() .UseConsoleLogger(); var localhostConnectionString = "ConnectTo=tcp://localhost:1113; HeartBeatTimeout=500"; connection = EventStoreConnection.Create(localhostConnectionString, settings); await connection.ConnectAsync(); } }