/// <summary> /// Create a new session from a given Report /// </summary> /// <param name="reportPath">Report Path</param> /// <returns>Newly created session id</returns> protected SessionIdLifeTime CreateNewSession(string reportPath) { int tid = System.Threading.Thread.CurrentThread.ManagedThreadId; string url = _contentManager.ConstructUrl(reportPath, new MHTMLRender(), null); string execid; _contentManager.IssueGetRequest(url, out execid); // can also use loadreport mechanism SessionIdLifeTime newSes = new SessionIdLifeTime(execid, reportPath); return(newSes); }