コード例 #1
0
 static internal IServerConfig GetInstance() {
     if (s_instance == null) {
         lock (s_initLock) {
             if (s_instance == null) {
                 s_instance = new ProcessHostServerConfig();
             }
         }
     }
     return s_instance;
 }
コード例 #2
0
 internal static IServerConfig GetInstance()
 {
     if (UseMetabase)
     {
         return(MetabaseServerConfig.GetInstance());
     }
     if (IISExpressVersion == null)
     {
         return(ProcessHostServerConfig.GetInstance());
     }
     return(ExpressServerConfig.GetInstance(IISExpressVersion));
 }
コード例 #3
0
 static internal IServerConfig GetInstance()
 {
     if (s_instance == null)
     {
         lock (s_initLock) {
             if (s_instance == null)
             {
                 s_instance = new ProcessHostServerConfig();
             }
         }
     }
     return(s_instance);
 }
コード例 #4
0
 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));
 }