Beispiel #1
0
        public GetEventStoreFixture()
        {
            connection = EventStoreConnection.Create("ConnectTo=tcp://admin:changeit@localhost:1113; HeartBeatTimeout=500; MaxReconnections=-1");

            EventStore = new GetEventStore(connection, JsonHelper.DefaultSerializer, "test", "localhost");
            EventStore.InitializeAsync().Wait();
        }
Beispiel #2
0
        public GetEventStoreFixture()
        {
            AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);

            settings = EventStoreClientSettings.Create(TestConfig.Configuration["eventStore:configuration"]);

            EventStore = new GetEventStore(settings, TestUtils.DefaultSerializer);
            EventStore.InitializeAsync(default).Wait();