public Task <StreamState> FetchStreamStateAsync(string streamKey, CancellationToken token = new CancellationToken()) { var handler = _tenant.EventStorage().QueryForStream(StreamAction.ForReference(streamKey, _tenant)); return(_session.ExecuteHandlerAsync(handler, token)); }
public Task <StreamState> FetchStreamStateAsync(Guid streamId, CancellationToken token = default) { var handler = eventStorage().QueryForStream(StreamAction.ForReference(streamId, _tenant.TenantId)); return(_session.ExecuteHandlerAsync(handler, token)); }
public StreamState FetchStreamState(string streamKey) { var handler = _tenant.EventStorage().QueryForStream(StreamAction.ForReference(streamKey, _tenant)); return(_session.ExecuteHandler(handler)); }
public StreamState FetchStreamState(Guid streamId) { var handler = eventStorage().QueryForStream(StreamAction.ForReference(streamId, _tenant.TenantId)); return(_session.ExecuteHandler(handler)); }