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
870 B
C#
31 lines
870 B
C#
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<Guid> CreateOrder(string name)
|
|
//{
|
|
// var order = await _orderService.CreateOrder(name);
|
|
|
|
// //await _distributedEventBus.PublishAsync("OrderCreated", new OrderCreatedIntegrationEvent()
|
|
// //{
|
|
// // Id = order.Id,
|
|
// // Name = name
|
|
// //});
|
|
|
|
// return order.Id;
|
|
//}
|
|
}
|
|
} |