private HubConnections CrateHubConnection <T>(IWebSocketSender webSocketSender) { var wrapper = new WebsocketWrapper( webSocketSender.SendToUser, webSocketSender.SendToRoom, webSocketSender.SendToAll, webSocketSender.SendToAllExcept ); return(new HubConnections(wrapper, typeof(T), _hubConnectionManager)); }
public DiagnosticsBusLogger(IWebSocketSender client) { _client = client; }
protected WebSocketHandler(IServiceProvider serviceProvider) { _connectionManager = serviceProvider.GetService <IWebSocketConnectionManager>(); _sender = serviceProvider.GetService <IWebSocketSender>(); }
public void Closed(IWebSocketSender sender) { }
public void Initialize(IWebSocketSender sender, string token) { EventSession.GetEvents(sender); }
public static void GetEvents(IWebSocketSender session) { EventSession.session = session; }
public LogStreamerSession(IWebSocketSender sender, ILogManager manager, CancellationToken ct, Dictionary<string, int> tablePrios = null) { _sender = sender; LogManager = manager; CancellationToken = ct; if (tablePrios != null) { BuildFilters(tablePrios); } State = RunState.Starting; var sb = new StringBuilder(); sb.Append("!ID "); StringSerializer.Serialize(sb, Db.Environment.DatabaseName); StringSerializer.Serialize(sb, SelfGuid.ToString()); Send(sb); }