public async Task On(MediaFeedAdded @event)
 {
     await _dbConnection.MediaFeeds
     .Value(x => x.MediaId, @event.Id)
     .Value(x => x.FeedUrl, @event.FeedUrl ?? "")
     .InsertAsync();
 }
Ejemplo n.º 2
0
 public Task On(MediaFeedAdded @event)
 {
     return(Add(new MediaFeedReadModel {
         MediaId = @event.Id,
         FeedUrl = @event.FeedUrl
     }));
 }