示例#1
0
 public NotificationCenterWebSocketWriter(WebSocket webSocket, NotificationsBase notificationsBase, IMemoryContextPool contextPool, CancellationToken resourceShutdown)
 {
     _webSocket         = webSocket;
     _notificationsBase = notificationsBase;
     contextPool.AllocateOperationContext(out _context);
     _resourceShutdown = resourceShutdown;
 }
示例#2
0
 public NotificationCenterWebSocketWriter(WebSocket webSocket, NotificationsBase notificationsBase, IMemoryContextPool contextPool, CancellationToken resourceShutdown)
 {
     _notificationsBase = notificationsBase;
     _contextPool       = contextPool;
     _resourceShutdown  = resourceShutdown;
     _webSocket         = webSocket;
 }