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

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