using Ds.Module.MediatR; namespace DS.TestResult.Controllers { public class OrderAppService { //private readonly IDistrbutedEventBus _distributedEventBus; //private readonly OrderService _orderService; //public OrderAppService( // IDistrbutedEventBus distributedEventBus, // OrderService orderService) //{ // _distributedEventBus = distributedEventBus; // _orderService = orderService; //} //public async Task CreateOrder(string name) //{ // var order = await _orderService.CreateOrder(name); // //await _distributedEventBus.PublishAsync("OrderCreated", new OrderCreatedIntegrationEvent() // //{ // // Id = order.Id, // // Name = name // //}); // return order.Id; //} } }