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