public async Task <IEvent <T> > LoadAsync <T>(Guid id, CancellationToken token = default) where T : class { await _tenant.EnsureStorageExistsAsync(typeof(StreamAction), token); _store.Events.AddEventType(typeof(T)); return((await LoadAsync(id, token)).As <Event <T> >()); }
public Task EnsureStorageExistsAsync(Type featureType, CancellationToken token = default) { return(_inner.EnsureStorageExistsAsync(featureType, token)); }