Exemplo n.º 1
0
        protected void SetScreenshotConfigButtonClick(
            object sender,
            EventArgs e)
        {
            var connectionId = GetIFrameConnectionId((sender as HtmlInputButton).Attributes["data-fid"]);

            if (connectionId != Guid.Empty)
            {
                captureClient.SetScreenshotConfig(connectionId, 10, CaptureFormat.PNG, @"C:\path\to\screenshots\");
            }
        }
Exemplo n.º 2
0
        protected void SetScreenshotConfigButtonClick(
            object sender,
            EventArgs e)
        {
            var gatewayUrl = GetIFrameGatewayUrl((sender as HtmlInputButton).Attributes["data-fid"]);

            if (!string.IsNullOrEmpty(gatewayUrl))
            {
                var connectionId = GetIFrameConnectionId((sender as HtmlInputButton).Attributes["data-fid"]);
                if (connectionId != Guid.Empty)
                {
                    var captureClient = new CaptureClient(string.Format("{0}/api/Capture/", gatewayUrl));
                    captureClient.SetScreenshotConfig(connectionId, 10, CaptureFormat.PNG, @"C:\path\to\screenshots\");
                }
            }
        }