Example #1
0
        protected void StartTakingScreenshotsButtonClick(
            object sender,
            EventArgs e)
        {
            var connectionId = GetIFrameConnectionId((sender as HtmlInputButton).Attributes["data-fid"]);

            if (connectionId != Guid.Empty)
            {
                captureClient.StartTakingScreenshots(connectionId);
            }
        }
Example #2
0
        protected void StartTakingScreenshotsButtonClick(
            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.StartTakingScreenshots(connectionId);
                }
            }
        }