Created
February 23, 2016 04:10
-
-
Save dcomartin/c9aa22bd8838f1757077 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 settings = ConnectionSettings.Create(); //.EnableVerboseLogging().UseConsoleLogger(); | |
using (_conn = EventStoreConnection.Create(settings, new IPEndPoint(IPAddress.Loopback, DEFAULTPORT))) | |
{ | |
_conn.ConnectAsync().Wait(); | |
var bufferSize = 10; | |
var autoAck = true; | |
CreateSubscription(); | |
_conn.ConnectToPersistentSubscription(STREAM, GROUP, EventAppeared, SubscriptionDropped, User, | |
bufferSize, autoAck); | |
Console.WriteLine("waiting for events. press enter to exit"); | |
Console.ReadLine(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment