Пример #1
0
 public ValueTask SyncSessionAsync(BlackjackContext ctx)
 {
     if (ctx.MessageId == 0)
     {
         throw new InvalidOperationException("Context Message ID was not set");
     }
     return(repository.EditAsync(ctx));
 }
Пример #2
0
 private async ValueTask AddSessionAsync(BlackjackContext ctx)
 {
     await repository.AddAsync(ctx);
 }
Пример #3
0
 public BlackjackSession(BlackjackContext context)
 {
     this.context = context;
 }