示例#1
0
 public WebSocketIo(Guid socketId,
                    WebSocket socket,
                    IEnumerable <string> joinedChannels,
                    IWebSocketIoConnectionManager webSocketIoConnectionManager) : this(socketId, socket, webSocketIoConnectionManager)
 {
     JoinedChannels = new List <string>(joinedChannels);
 }
示例#2
0
 public WebSocketIo(Guid socketId,
                    WebSocket socket,
                    IWebSocketIoConnectionManager webSocketIoConnectionManager)
 {
     SocketId       = socketId;
     Socket         = socket;
     JoinedChannels = new List <string>();
     _webSocketIoConnectionManager = webSocketIoConnectionManager;
     Broadcast = new BroadcastBuilder(this, webSocketIoConnectionManager);
     Private   = new PrivateBuilder(webSocketIoConnectionManager);
 }
示例#3
0
 public WebSocketIoMiddleware(RequestDelegate next,
                              IWebSocketIoConnectionManager webSocketIoConnectionManager)
 {
     _next = next;
     _webSocketIoConnectionManager = webSocketIoConnectionManager;
 }
 public PrivateBuilder(IWebSocketIoConnectionManager webSocketIoConnectionManager)
 {
     _webSocketIoConnectionManager = webSocketIoConnectionManager;
 }
 public BroadcastBuilder(IWebSocketIo webSocketIo,
                         IWebSocketIoConnectionManager webSocketIoConnectionManager)
 {
     _webSocketIo = webSocketIo;
     _webSocketIoConnectionManager = webSocketIoConnectionManager;
 }
示例#6
0
 public HttpWebSocketIoDisposableFilter(IServiceProvider serviceProvider,
                                        IWebSocketIoConnectionManager webSocketIoConnectionManager)
 {
     _serviceProvider = serviceProvider;
     _webSocketIoConnectionManager = webSocketIoConnectionManager;
 }