Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created February 23, 2016 04:10
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 dcomartin/c9aa22bd8838f1757077 to your computer and use it in GitHub Desktop.
Save dcomartin/c9aa22bd8838f1757077 to your computer and use it in GitHub Desktop.
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