Skip to content

Instantly share code, notes, and snippets.

@jen20
Created April 1, 2014 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jen20/9913183 to your computer and use it in GitHub Desktop.
Save jen20/9913183 to your computer and use it in GitHub Desktop.
var connSettings = ConnectionSettings.Create()
.DisableVerboseLogging()
.PerformOnMasterOnly()
.LimitConcurrentOperationsTo(500)
.LimitOperationsQueueTo(5000)
.KeepReconnecting()
.WithConnectionTimeoutOf(TimeSpan.FromMilliseconds(500))
.SetReconnectionDelayTo(TimeSpan.Zero);
var clusterSettings = ClusterSettings.Create()
.SetMaxDiscoverAttempts(Int32.MaxValue)
.SetClusterDns("hashowcase.eventstore.local")
.WithGossipTimeoutOf(TimeSpan.FromMilliseconds(500));
conn = EventStoreConnection.Create(connSettings, clusterSettings, "Writers");
await conn.ConnectAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment