Exemplo n.º 1
0
        public async Task InitializeAsync(CancellationToken ct = default)
        {
            try
            {
                await connection.ConnectAsync();
            }
            catch (Exception ex)
            {
                throw new ConfigurationException("Cannot connect to event store.", ex);
            }

            await projectionClient.ConnectAsync();
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            try
            {
                connection.ConnectAsync().Wait();
            }
            catch (Exception ex)
            {
                throw new ConfigurationException("Cannot connect to event store.", ex);
            }

            projectionClient.ConnectAsync().Wait();
        }
Exemplo n.º 3
0
        public async Task InitializeAsync(CancellationToken ct = default)
        {
            try
            {
                await connection.ConnectAsync();
            }
            catch (Exception ex)
            {
                var error = new ConfigurationError("GetEventStore cannot connect to event store.");

                throw new ConfigurationException(error, ex);
            }

            await projectionClient.ConnectAsync();
        }