protected void StartTakingScreenshotsButtonClick( object sender, EventArgs e) { var connectionId = GetIFrameConnectionId((sender as HtmlInputButton).Attributes["data-fid"]); if (connectionId != Guid.Empty) { captureClient.StartTakingScreenshots(connectionId); } }
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); } } }