/// <inheritdoc /> protected override Task <TResult> Handle(IProjection <TState> projection, HistoricalQuery <TQuery, TResult> query) { throw new System.NotImplementedException(); }
/// <inheritdoc /> protected override Task <TResult> Handle(HistoricalQuery <TQuery, TResult> query) { Projection = Manager.GetHistoricalProjection <TResult>(query.Query.Id); return(base.Handle(query)); }
/// <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)); }