Exemple #1
0
        private static void SendRenderResultMessage(IExecutorDriver driver, string url, string fileName)
        {
            var message = new Message
            {
                Type = "RenderResult",
                Body = JsonHelper.Serialize(new RenderResultMessage
                {
                    Url = url,
                    FileName = fileName
                })
            };

            driver.SendFrameworkMessage(JsonHelper.Serialize(message));
        }
Exemple #2
0
        private static void SendCrawlResultMessage(IExecutorDriver driver, string url, string[] links)
        {
            var message = new Message
            {
                Type = "CrawlResult",
                Body = JsonHelper.Serialize(new CrawlResultMessage
                {
                    Url = url,
                    Links = links
                })
            };

            driver.SendFrameworkMessage(JsonHelper.Serialize(message));
        }