public WebSocketsMiddleware( IWebSocketManager webSocketManager, ILoggerFactory loggerFactory) { this.webSocketManager = webSocketManager; this.logger = loggerFactory.CreateLogger <WebSocketsMiddleware>(); }
public WebSocketEventNotifier(IWebSocketManager manager, IExternalEventSubscription externalEventSubscription) { this.serialiser = new WebSocketDataSerialisation(); this.externalEventSubscription = externalEventSubscription; this.webSocketManager = manager; this.webSocketManager.SocketDisconnected += this.WebSocketManagerOnSocketDisconnected; this.webSocketManager.MessageReceived += this.WebSocketManagerOnMessageReceived; }
public CreateMessageHandler(IHubContext <WebsocketHub> webSocketHub, IHttpContextAccessor httpContextAccessor, IWebSocketManager webSocketManager, IMapper mapper) { _httpContext = httpContextAccessor.HttpContext; _webSocketHub = webSocketHub; _webSocketManager = webSocketManager; _mapper = mapper; }
public LoggingWebSocketManagerDecorator(IWebSocketManager decoratedSocketManager, ILoggingFrameworkAdapter loggingFrameworkAdapter) { this.webSocketManager = decoratedSocketManager; this.loggingFrameworkAdapter = loggingFrameworkAdapter; this.webSocketManager.SocketConnected += this.WebSocketManagerOnSocketConnected; this.webSocketManager.SocketDisconnected += this.WebSocketManagerSocketDisconnected; this.webSocketManager.MessageReceived += this.WebSocketManagerMessageReceived; }
public WebSocketMiddleware( RequestDelegate next, ILogger <WebSocketMiddleware> logger, IWebSocketManager webSocketManager) { this.next = next; this.logger = logger; this.webSocketManager = webSocketManager; }
public PeerDiscoveryService( ILogger <PeerDiscoveryService> logger, IOptions <ApplicationSettings> appSettings, IWebSocketManager webSocketManager) { this.logger = logger; this.appSettings = appSettings; this.webSocketManager = webSocketManager; }
public void Start() { audioFile = Path.Combine(Application.persistentDataPath, "Recording.wav"); #if UNITY_EDITOR socketManager = new WebSocketManager(); #elif ENABLE_WINMD_SUPPORT socketManager = new WSAWebSocketManager(); #endif }
/// <summary> /// Executes the middleware action. /// </summary> /// <param name="httpContext">The current HTTP context.</param> /// <param name="webSocketManager">The WebSocket connection manager.</param> /// <returns>The async task.</returns> public async Task Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) { if (!httpContext.WebSockets.IsWebSocketRequest) { await _next(httpContext).ConfigureAwait(false); return; } await webSocketManager.WebSocketRequestHandler(httpContext).ConfigureAwait(false); }
public WebSocketMiddleware( RequestDelegate next, IWebSocketManager webSocketManager, IWebSocketContextAccessor webSocketContextAccessor, IWebSocketContextFactory webSocketContextFactory, IWebSocketRouteHandler router) { _next = next; WebSocketManager = webSocketManager; WebSocketContextAccessor = webSocketContextAccessor; WebSocketContextFactory = webSocketContextFactory; Router = router; }
/// <summary> /// Initializes a new instance of the <see cref="SessionWebSocketListener" /> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="sessionManager">The session manager.</param> /// <param name="loggerFactory">The logger factory.</param> /// <param name="webSocketManager">The HTTP server.</param> public SessionWebSocketListener( ILogger <SessionWebSocketListener> logger, ISessionManager sessionManager, ILoggerFactory loggerFactory, IWebSocketManager webSocketManager) { _logger = logger; _sessionManager = sessionManager; _loggerFactory = loggerFactory; _webSocketManager = webSocketManager; webSocketManager.WebSocketConnected += OnServerManagerWebSocketConnected; }
public NodeController( ILogger <NodeController> logger, IWebSocketManager webSocketManager, IBlockchainManager blockchainManager, IBroadcastService broadcastService, IWalletManager walletManager, ITransactionPoolManager transactionPoolManager) { this.logger = logger; this.webSocketManager = webSocketManager; this.blockchainManager = blockchainManager; this.broadcastService = broadcastService; this.walletManager = walletManager; this.transactionPoolManager = transactionPoolManager; }
public SlackRtmClient(IWebSocketManager webSocketManager, ISlackConfigGroup slackConfigGroup, IRtmRequestFactory rtmRequestFactory, IRtmResponseFactory rtmResponseFactory, ISlackRtmEventPublisher slackRtmEventPublisher, ISlackConnectionEventPublisher slackConnectionEventPublisher, IBashiLogger log) { pingTimeout = slackConfigGroup.PingTimeout; this.webSocketManager = webSocketManager; this.rtmRequestFactory = rtmRequestFactory; this.rtmResponseFactory = rtmResponseFactory; this.slackRtmEventPublisher = slackRtmEventPublisher; this.slackConnectionEventPublisher = slackConnectionEventPublisher; this.log = log; }
/// <summary> /// /// </summary> /// <param name="socketManager"></param> public MessageEventHandlerRegisterService(IWebSocketManager socketManager) { _socketManager = socketManager; }
/// <summary> /// /// </summary> /// <param name="socketManager"></param> public MessageSendService(IWebSocketManager socketManager) { _socketManager = socketManager; }
public DummyWebsocketServer(string server, int port) { superWebsocketManager = new SuperWebsocketManager(new WebsocketConfiguration(port, server)); }
public DummyWebsocketServer(string server, int port) { superWebsocketManager = new SuperWebsocketManager(new WebsocketConfiguration(port, server)); }
public WebsocketHub(IWebSocketManager webSocketManager, IMediator mediator) { _webSocketManager = webSocketManager; _mediator = mediator; }
public WebSocketNotificationSender(IWebSocketManager webSocketManager) { _webSocketManager = webSocketManager; }
public WSHub(IWebSocketManager _manager, ILogger <WSHub> logger) : base(_manager, logger) { }
public WebSocketHub(IWebSocketManager _manager, ILogger <WebSocketHub> logger) { WSManager = _manager; _logger = logger; }
/// <summary> /// /// </summary> > public WebSocketMiddleware(RequestDelegate next, IWebSocketManager webSocketManager) { _next = next; _webSocketManager = webSocketManager; }
/// <summary> /// /// </summary> /// <param name="socket"></param> /// <param name="manager"></param> /// <param name="messageService"></param> public WebSocketReceiver(WebSocket socket, IWebSocketManager manager, IMessageService messageService) { _socket = socket; _manager = manager; _messageService = messageService; }