예제 #1
0
 public void Start(LiveWebSocketManager socketManager, CancellationToken ct = default(CancellationToken))
 {
     _socketManager = socketManager;
     _subscriber    = _redis.GetSubscriber();
     _subscriber.Subscribe("shtik:messaging", HandleMessage);
     ct.Register(Cancel);
 }
예제 #2
0
 public LiveWebSocketMiddleware(RequestDelegate next, LiveWebSocketManager sockets)
 {
     _next    = next;
     _sockets = sockets;
 }