/// <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); } }
public bool IsBattalionMovementExecuted(CheckBattalionMovementEventModel model) { return(_domain.IsEventExecuted <BattalionMovementEvent>(model.GameId, model.StreamVersion, model.EventId)); }
/// <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()); }
public IHttpActionResult IsBattalionMovementExecuted(CheckBattalionMovementEventModel model) { return(Ok(_gameService.IsBattalionMovementExecuted(model))); }