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.
|
|
|
|
using Furion;
|
|
|
|
|
using Furion.EventBus;
|
|
|
|
|
using Furion.Logging;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application.Helper
|
|
|
|
|
{
|
|
|
|
|
public static class CustomerBookingSyncHelper
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 推送订舱数据到客户订舱系统
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
public async static void SendCustomerBookingSync(long id)
|
|
|
|
|
{
|
|
|
|
|
Log.Information($"发送推送订舱数据到客户订舱系统事件:{id}");
|
|
|
|
|
var evtPub = App.GetService<IEventPublisher>();
|
|
|
|
|
await evtPub.PublishAsync(new ChannelEventSource("SendToCustomer:Book", id));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|