public async Task can_connect_to_tls_ip_endpoint_gossip_seed() { var streamName = GetStreamName(); using var connection = _fixture.CreateConnectionWithGossipSeeds( builder => builder.UseSsl(true)); await connection.ConnectAsync().WithTimeout(); var writeResult = await connection.AppendToStreamAsync(streamName, ExpectedVersion.Any, TestEventGenerator.CreateTestEvents()); Assert.True(writeResult.LogPosition.PreparePosition > 0); }
public IEventStoreConnection CreateConnection( Func <ConnectionSettingsBuilder, ConnectionSettingsBuilder> configureSettings, bool useStandardPort, int clusterMaxDiscoverAttempts = 1) => UseCluster ? _cluster.CreateConnectionWithGossipSeeds( configureSettings, useStandardPort? 2113 : 2118, useDnsEndPoint : true, maxDiscoverAttempts : clusterMaxDiscoverAttempts) : _singleNode.CreateConnection( configureSettings, useStandardPort ? 1113 : 1114, useDnsEndPoint: true);