Esempio n. 1
0
        public void Run()
        {
            service = new TemperatureService();
            server  = new SocketServer(new IPEndPoint(IPAddress.IPv6Any, 0));

            server.Connected.Subscribe(ClientConnected);

            server.Start();
            this.ServerPort = server.BindEndPoint.Port;

            service.TemperatureChanged += TempChanged;
        }
Esempio n. 2
0
        public void Run()
        {
            service = new TemperatureService();
            server = new SocketServer(new IPEndPoint(IPAddress.IPv6Any, 0));

            server.Connected.Subscribe(ClientConnected);

            server.Start();
            this.ServerPort = server.BindEndPoint.Port;

            service.TemperatureChanged += TempChanged;
        }
Esempio n. 3
0
 public ServerMessageHandler(TemperatureService service)
 {
     this.service = service;
 }
Esempio n. 4
0
 public ServerMessageHandler(TemperatureService service)
 {
     this.service = service;
 }