public static void Main(string[] args)
        {
            webServer = new WebServer(1337);
            webServer.Run();

            browser            = new ChromiumHeadlessBrowserWithCefSharp("http://127.0.0.1:1337/index.html", 1024, 768);
            browser.PageReady += BrowserPageReady;

            Console.ReadLine();
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            webServer = new WebServer(1337);
            webServer.Run();

            browser = new ChromiumHeadlessBrowserWithCefSharp("http://127.0.0.1:1337/index.html", 1024, 768);
            browser.PageReady += BrowserPageReady;

            Console.ReadLine();
        }
Ejemplo n.º 3
0
 public Form1()
 {
     InitializeComponent();
     _textBitmapCreator = new TextBitmapCreator();
     _webServer         = new WebServer(request => {
         var number         = Convert.ToInt32(request.Url.AbsolutePath.Split('/').Last());
         _numberLastUpdated = DateTime.Now;
         _numberLastValue   = number;
         return($"Received: {_numberLastValue} at {_numberLastUpdated}");
     }, exception => { }, HttpListenerPrefix);
     _webServer.Run();
 }
Ejemplo n.º 4
0
        public void Handle(ServeCommand command)
        {
            globalLogger.Instance.Information($"[{nameof(ServeCommandHandler)}.{nameof(ServeCommandHandler.Handle)}] succesfully called with the parameter: {{@Command}}", command);

            webServer.Run(localConfiguration.OutputPath, command.Port);
        }