Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Created July 18, 2014 14:35
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 wayne-o/686aa4207c43abb692bf to your computer and use it in GitHub Desktop.
Save wayne-o/686aa4207c43abb692bf to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ges.ReadModel
{
using System.Net;
using EventStore.ClientAPI;
class Program
{
static void Main(string[] args)
{
var connection = EventStoreConnection.Create(new IPEndPoint(IPAddress.Loopback, 1113));
connection.Connect();
connection.SubscribeToStream("TestEvent", false,
(subscription, @event) => Console.WriteLine("recieved!!"));
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment