Esempio n. 1
0
 public Task <BlackjackSession> LoadSessionAsync(
     ulong userId,
     ulong channelId)
 {
     return(repository.GetAsync(channelId, userId)
            .AndThen(session => RuntimeAssert.NotNull(
                         session, new BlackjackSessionNullException()))
            .Map(session => new BlackjackSession(session)));
 }