Class ApiControllerSignalR<T>
- Namespace
- ZapLib
- Assembly
- ZapLib.dll
具備 SignalR 擴充功能的 ApiController
public abstract class ApiControllerSignalR<T> : ApiController, IHttpController, IDisposable where T : IHub
Type Parameters
T自訂的 IHub 類別 T
- Inheritance
-
ApiControllerSignalR<T>
- Implements
- Inherited Members
Properties
Hub
取得 IHubContext Hub 物件
protected IHubContext Hub { get; }
Property Value
- IHubContext
Methods
IsConnectionIdAlive(string)
判斷連線 Id 是否正常連線
[NonAction]
public bool IsConnectionIdAlive(string connectionId)
Parameters
connectionIdstring連線 ID
Returns
- bool
是否正常連線
ResolveConnectionIds(IList<string>, out IList<string>, out IList<string>)
解析連線 Ids,回傳正常連線與已經失去連線的兩組資料
[NonAction]
public void ResolveConnectionIds(IList<string> connectionIds, out IList<string> Alive, out IList<string> Dead)