using Ds.Module.MediatR; namespace DS.TestResult.Controllers { public class OrderService { private readonly ILocalEventBus _localEventBus; public OrderService(ILocalEventBus localEventBus) { _localEventBus = localEventBus; } //public async Task CreateOrder(string name) //{ // var order = new Order() // { // Id = Guid.NewGuid(), // Name = name, // }; // await _localEventBus.Publish(new OrderCreatedDomainEvent() // { // Id = order.Id, // Name = order.Name // }); // return order; //} } }