You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
721 B
C#
31 lines
721 B
C#
using Ds.Module.MediatR;
|
|
|
|
namespace DS.TestResult.Controllers
|
|
{
|
|
public class OrderService
|
|
{
|
|
private readonly ILocalEventBus _localEventBus;
|
|
|
|
public OrderService(ILocalEventBus localEventBus)
|
|
{
|
|
_localEventBus = localEventBus;
|
|
}
|
|
|
|
//public async Task<Order> 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;
|
|
//}
|
|
}
|
|
} |