Ejemplo n.º 1
0
 private static void EnsureShimRegistered(Configuration.Config c)
 {
     lock (lockShim)
     {
         if (shim == null)
         {
             var s = new VirtualPathProviderShim(c);
             HostingEnvironment.RegisterVirtualPathProvider(s);
             shim = s;
         }
     }
 }
Ejemplo n.º 2
0
 private static void EnsureShimRegistered(Configuration.Config c)
 {
     lock (lockShim)
     {
         if (shim == null)
         {
             var s = new VirtualPathProviderShim(c);
             HostingEnvironment.RegisterVirtualPathProvider(s);
             shim = s;
         }
     }
 }