コード例 #1
0
 public async Task Run([ServiceBusTrigger(ServiceBusConstants.QueueNames.TestEngineExecuteTests, Connection = ServiceBusConstants.ConnectionStringConfigurationKey)] Message message)
 {
     try
     {
         _correlationIdProvider.SetCorrelationId(message.GetCorrelationId());
         await _testEngineService.RunTests(message);
     }
     catch (Exception exception)
     {
         _logger.Error(exception, $"An error occurred processing message on queue: '{ServiceBusConstants.QueueNames.TestEngineExecuteTests}'");
         throw;
     }
 }
コード例 #2
0
 public Task <IActionResult> RunTests()
 {
     return(_testEngineService.RunTests(ControllerContext.HttpContext.Request));
 }
コード例 #3
0
 public Task <IActionResult> RunTests([FromBody] TestExecutionModel testExecutionModel)
 {
     return(_testEngineService.RunTests(testExecutionModel));
 }