Exemplo n.º 1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> IsBattalionMovementExecutedAsync(this IGame operations, CheckBattalionMovementEventModel model, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.IsBattalionMovementExecutedWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 public bool IsBattalionMovementExecuted(CheckBattalionMovementEventModel model)
 {
     return(_domain.IsEventExecuted <BattalionMovementEvent>(model.GameId, model.StreamVersion, model.EventId));
 }
Exemplo n.º 3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 public static object IsBattalionMovementExecuted(this IGame operations, CheckBattalionMovementEventModel model)
 {
     return(operations.IsBattalionMovementExecutedAsync(model).GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 public IHttpActionResult IsBattalionMovementExecuted(CheckBattalionMovementEventModel model)
 {
     return(Ok(_gameService.IsBattalionMovementExecuted(model)));
 }