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)); }
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)); }