Created
April 1, 2014 12:42
-
-
Save jen20/9913183 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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