private static void EnsureInitialized()
 {
     if (service == null)
     {
         service = new UrlDownloadToFileImpl();
     }
 }
 private static void EnsureInitialized()
 {
     if (service == null)
     {
         service = new UrlDownloadToFileImpl();
     }
 }
 public static void Initialize(IBrowserBasedWebRequest instance)
 {
     if (service != null)
     {
         Trace.Assert(object.ReferenceEquals(service, instance), "BrowserBasedWebRequestLocator was initialized twice with different values");
     }
     service = instance;
 }
 public static void Initialize(IBrowserBasedWebRequest instance)
 {
     if (service != null)
         Trace.Assert(object.ReferenceEquals(service, instance), "BrowserBasedWebRequestLocator was initialized twice with different values");
     service = instance;
 }