API for managing projections in the Event Store through C# code. Communicates with the Event Store over the RESTful API.
Пример #1
0
 /// <summary>
 /// Creates a new instance of <see cref="QueryManager"/>.
 /// </summary>
 /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
 /// <param name="dnsHttpEndPoint">HTTP DNS endpoint of an Event Store server.</param>
 /// <param name="projectionOperationTimeout">Timeout of projection API operations</param>
 /// <param name="queryTimeout">Timeout of query execution</param>
 /// <param name="clienthandler">Overideable HTTP Client Handler</param>
 public QueryManager(ILogger log, DnsEndPoint dnsHttpEndPoint, TimeSpan projectionOperationTimeout, TimeSpan queryTimeout, HttpClientHandler clienthandler = null)
 {
     _queryTimeout       = queryTimeout;
     _projectionsManager = new ProjectionsManager(log, dnsHttpEndPoint, projectionOperationTimeout, clienthandler);
 }
Пример #2
0
 /// <summary>
 /// Creates a new instance of <see cref="QueryManager"/>.
 /// </summary>
 /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
 /// <param name="dnsHttpEndPoint">HTTP DNS endpoint of an Event Store server.</param>
 /// <param name="projectionOperationTimeout">Timeout of projection API operations</param>
 /// <param name="queryTimeout">Timeout of query execution</param>
 public QueryManager(ILogger log, DnsEndPoint dnsHttpEndPoint, TimeSpan projectionOperationTimeout, TimeSpan queryTimeout)
 {
     _queryTimeout       = queryTimeout;
     _projectionsManager = new ProjectionsManager(log, dnsHttpEndPoint, projectionOperationTimeout);
 }
Пример #3
0
 /// <summary>
 /// Creates a new instance of <see cref="QueryManager"/>.
 /// </summary>
 /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
 /// <param name="httpEndPoint">HTTP endpoint of an Event Store server.</param>
 /// <param name="projectionOperationTimeout">Timeout of projection API operations</param>
 /// <param name="queryTimeout">Timeout of query execution</param>
 /// <param name="httpMessageHandler">An <see cref="HttpMessageHandler"/> to use in the <see cref="HttpClient"/>.</param>
 public QueryManager(ILogger log, EndPoint httpEndPoint, TimeSpan projectionOperationTimeout,
                     TimeSpan queryTimeout, HttpMessageHandler httpMessageHandler = null)
 {
     _queryTimeout       = queryTimeout;
     _projectionsManager = new ProjectionsManager(log, httpEndPoint, projectionOperationTimeout, httpMessageHandler);
 }
Пример #4
0
 /// <summary>
 /// Creates a new instance of <see cref="QueryManager"/>.
 /// </summary>
 /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
 /// <param name="httpEndPoint">HTTP endpoint of an Event Store server.</param>
 /// <param name="projectionOperationTimeout">Timeout of projection API operations</param>
 /// <param name="queryTimeout">Timeout of query execution</param>
 /// <param name="client">Overrideable HTTP Client Handler</param>
 public QueryManager(ILogger log, EndPoint httpEndPoint, TimeSpan projectionOperationTimeout,
                     TimeSpan queryTimeout, IHttpClient client = null)
 {
     _queryTimeout       = queryTimeout;
     _projectionsManager = new ProjectionsManager(log, httpEndPoint, projectionOperationTimeout, client);
 }