private void OnBeginRequestJavascript(object sender, EventArgs e) { HttpContext context = ((HttpApplication)sender).Context; if (context != null && context.Request.Path.EndsWith("51Degrees.core.js", StringComparison.OrdinalIgnoreCase) && WebPipeline.GetInstance().ClientSideEvidenceEnabled) { FiftyOneJsProvider.GetInstance().ServeJavascript(context); } }
/// <summary> /// Get the only instance of WebPipeline. If an instance does not /// already exist, one is created. /// </summary> /// <returns> /// The single instance of WebPipeline /// </returns> public static WebPipeline GetInstance() { if (_instance == null) { lock (_lock) { if (_instance == null) { _instance = new WebPipeline(); } } } return(_instance); }