public StreamState FetchStreamState(string streamKey) { _tenant.EnsureStorageExists(typeof(EventStream)); var handler = new StreamStateByStringHandler(_store.Events, streamKey, _tenant.TenantId); return(_connection.Fetch(handler, null, null, _tenant)); }
public Task <StreamState> FetchStreamStateAsync(string streamKey, CancellationToken token = new CancellationToken()) { _tenant.EnsureStorageExists(typeof(EventStream)); var handler = new StreamStateByStringHandler(_store.Events, streamKey, _tenant.TenantId); return(_connection.FetchAsync(handler, null, null, _tenant, token)); }
public StreamState FetchStreamState(string streamKey) { _tenant.EnsureStorageExists(typeof(EventStream)); var handler = new StreamStateByStringHandler(_store.Events, streamKey, _tenant.TenantId); return(_session.ExecuteHandler(handler)); }