public virtual void Initialize(HttpServerModule server) { logger = Mst.Create.Logger(GetType().Name); logger.LogLevel = logLevel; ComposeHtml(); }
public virtual void Initialize(HttpServerModule httpServer) { HttpServer = httpServer; MasterServer = httpServer.Server; logger = Mst.Create.Logger(GetType().Name); logger.LogLevel = logLevel; }
public virtual void Initialize(HttpServerModule httpServer, WsControllerService wsService) { HttpServer = httpServer; MasterServer = httpServer.Server; WsService = wsService; logger = Mst.Create.Logger(GetType().Name); logger.LogLevel = logLevel; }
public override void Initialize(HttpServerModule server) { base.Initialize(server); server.RegisterHttpRequestHandler("info", OnGetMstInfoJsonHttpRequestHandler); info = new Dictionary <string, string> { { "Device Id", SystemInfo.deviceUniqueIdentifier }, { "Device Model", SystemInfo.deviceModel }, { "Device Name", SystemInfo.deviceName }, { "Graphics Device Name", SystemInfo.graphicsDeviceName }, { "Graphics Device Version", SystemInfo.graphicsDeviceVersion }, { "...", "etc." }, }; }
public override void Initialize(HttpServerModule server) { base.Initialize(server); server.RegisterHttpRequestHandler("home", OnHomeHttpRequestHandler); }
public override void Initialize(HttpServerModule server) { base.Initialize(server); server.RegisterHttpRequestHandler("info", OnGetMstInfoHttpRequestHandler); }
public void SetHttpServer(HttpServerModule httpServerModule) { this.httpServerModule = httpServerModule; this.httpServerModule.OnUpdateEvent += HttpServerModule_OnUpdateEvent; }