增加工单模块
This commit is contained in:
1 parent
dc136e449e
commit
f9dcae4610
17 files changed
+4908
No files matched your search
@@ -0,0 +1,36 @@
|
||||
using OrderSupportTicket.Models;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrderSupportTicket.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 工单 SSE 实时通知服务。
|
||||
/// </summary>
|
||||
public interface ITicketRealtimeService : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// 收到工单变更摘要通知时触发。
|
||||
/// </summary>
|
||||
event EventHandler<TicketRealtimeNotificationEventArgs> NotificationReceived;
|
||||
|
||||
/// <summary>
|
||||
/// SSE 连接状态变化时触发。
|
||||
/// </summary>
|
||||
event EventHandler<TicketRealtimeStateChangedEventArgs> StateChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 当前 SSE 连接状态。
|
||||
/// </summary>
|
||||
TicketRealtimeState State { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 使用指定工单参数建立 SSE 连接。
|
||||
/// </summary>
|
||||
void Start(TicketClientOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// 停止 SSE 连接。
|
||||
/// </summary>
|
||||
Task StopAsync();
|
||||
}
|
||||
Reference in new issue
Block a user