Created
July 18, 2014 14:35
-
-
Save wayne-o/686aa4207c43abb692bf 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
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