コード例 #1
0
 public WebSocketServiceImpl(WebSocketServerBase server, Router router)
 {
     _server = server;
     _server.MessageReceived += (s, e) => router.RouteRequest(e.Connection, e.Message);
     _server.ConnectionClosed += (s, e) => router.CleanupConnection(e.Connection);
 }        
コード例 #2
0
ファイル: RoutesConfig.cs プロジェクト: oryol/devicehive-.net
 public static void ConfigureRoutes(Router router)
 {
     router.RegisterController("/client", typeof(ClientController));
     router.RegisterController("/device", typeof(DeviceController));
 }