Exemple #1
0
 /// <inheritdoc />
 protected override Task <TResult> Handle(IProjection <TState> projection, HistoricalQuery <TQuery, TResult> query)
 {
     throw new System.NotImplementedException();
 }
Exemple #2
0
 /// <inheritdoc />
 protected override Task <TResult> Handle(HistoricalQuery <TQuery, TResult> query)
 {
     Projection = Manager.GetHistoricalProjection <TResult>(query.Query.Id);
     return(base.Handle(query));
 }
Exemple #3
0
 /// <summary>
 /// Using an injected <see cref="HistoricalProjection{TState}"/> instance resolve the query at specified point in time
 /// </summary>
 /// <param name="query">Historical query</param>
 /// <returns>Task representing the asynchronous execution of historical query</returns>
 protected override async Task <TResult> Handle(HistoricalQuery <TQuery, TResult> query)
 {
     query.Query.Timestamp = query.Timestamp;
     return(await _handler.Handle(query.Query));
 }