static internal IServerConfig GetInstance() {
     if (s_instance == null) {
         lock (s_initLock) {
             if (s_instance == null) {
                 s_instance = new ProcessHostServerConfig();
             }
         }
     }
     return s_instance;
 }
Exemplo n.º 2
0
 internal static IServerConfig GetInstance()
 {
     if (UseMetabase)
     {
         return(MetabaseServerConfig.GetInstance());
     }
     if (IISExpressVersion == null)
     {
         return(ProcessHostServerConfig.GetInstance());
     }
     return(ExpressServerConfig.GetInstance(IISExpressVersion));
 }
Exemplo n.º 3
0
 static internal IServerConfig GetInstance()
 {
     if (s_instance == null)
     {
         lock (s_initLock) {
             if (s_instance == null)
             {
                 s_instance = new ProcessHostServerConfig();
             }
         }
     }
     return(s_instance);
 }
 static internal IServerConfig GetInstance()
 {
     // IIS 7 bits on <= IIS 6: use the metabase
     if (UseMetabase)
     {
         return(MetabaseServerConfig.GetInstance());
     }
     if (IISExpressVersion == null)
     {
         return(ProcessHostServerConfig.GetInstance());
     }
     return(ExpressServerConfig.GetInstance(IISExpressVersion));
 }