Example #1
0
        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> >());
        }
Example #2
0
 public Task EnsureStorageExistsAsync(Type featureType, CancellationToken token = default)
 {
     return(_inner.EnsureStorageExistsAsync(featureType, token));
 }