/// <summary> /// Gets the IBrowser instance. /// </summary> /// <returns>The IBrowser instance.</returns> private IBrowser GetBrowser() { var userAgentStringSpan = this.httpContextAccessor.HttpContext.Request.Headers["User-Agent"][0].AsSpan(); return(Detector.GetBrowser(userAgentStringSpan)); }