public Task <IEvent> LoadAsync(Guid id, CancellationToken token = default(CancellationToken)) { _tenant.EnsureStorageExists(typeof(StreamAction)); var handler = new SingleEventQueryHandler(id, _session.EventStorage()); return(_session.ExecuteHandlerAsync(handler, token)); }
public async Task <IEvent> LoadAsync(Guid id, CancellationToken token = default) { await _tenant.Database.EnsureStorageExistsAsync(typeof(StreamAction), token).ConfigureAwait(false); var handler = new SingleEventQueryHandler(id, _session.EventStorage()); return(await _session.ExecuteHandlerAsync(handler, token).ConfigureAwait(false)); }
public Task <IEvent> LoadAsync(Guid id, CancellationToken token = default(CancellationToken)) { _tenant.EnsureStorageExists(typeof(EventStream)); var handler = new SingleEventQueryHandler(id, _store.Events, _store.Serializer); return(_connection.FetchAsync(handler, new NulloIdentityMap(_store.Serializer), null, _tenant, token)); }
public IEvent Load(Guid id) { _tenant.EnsureStorageExists(typeof(EventStream)); var handler = new SingleEventQueryHandler(id, _store.Events, _store.Serializer); return(_connection.Fetch(handler, new NulloIdentityMap(_store.Serializer), null, _tenant)); }
public IEvent Load(Guid id) { _tenant.EnsureStorageExists(typeof(EventStream)); var handler = new SingleEventQueryHandler(id, _store.Events, _store.Serializer); return(_session.ExecuteHandler(handler)); }
public IEvent Load(Guid id) { var handler = new SingleEventQueryHandler(id, _session.EventStorage()); return(_session.ExecuteHandler(handler)); }
public Task <IEvent> LoadAsync(Guid id, CancellationToken token = default(CancellationToken)) { var handler = new SingleEventQueryHandler(id, _schema.Events.As <EventGraph>(), _serializer); return(_connection.FetchAsync(handler, _identityMap, token)); }
public IEvent Load(Guid id) { var handler = new SingleEventQueryHandler(id, _schema.Events.As <EventGraph>(), _serializer); return(_connection.Fetch(handler, _identityMap)); }
public IEvent Load(Guid id) { var handler = new SingleEventQueryHandler(id, _schema.Events, _serializer); return(_connection.Fetch(handler, new NulloIdentityMap(_serializer))); }
public Task <IEvent> LoadAsync(Guid id, CancellationToken token = default(CancellationToken)) { var handler = new SingleEventQueryHandler(id, _schema.Events, _serializer); return(_connection.FetchAsync(handler, new NulloIdentityMap(_serializer), null, token)); }