/// <summary>
 /// Constructor, which is also an entry point into creating the IIS-host MasterServiceWebHost and
 /// associated WCF ServiceHosts.  
 /// </summary>
 public ConfigurationActions()
 {
      //This is the key call that will startup all services defined in the repository.  In this case, just the config and node services since the Simple Web app does not host any custom services.
         ServiceConfigHelper.MasterServiceWebHost MasterHost = new ServiceConfigHelper.MasterServiceWebHost(new Settings(), new ConfigurationService(), new NodeCommunication(),null, this,null,null,new object[]{typeof(ITradeServices), typeof(IOrderProcessor)}, null);
         setAccessMode(Trade.StockTraderWebApplicationSettings.Settings.ACCESS_MODE);
         if (Settings.ACCESS_MODE == StockTraderUtility.BSL_INPROCESS)
             InitConfigInProcessBusinessService.initConfigBusinessService(ConfigUtility.masterServiceWebHostSyncObject, false);
 }
 /// <summary>
 /// Constructor, which is also an entry point into creating the IIS-host MasterServiceWebHost and
 /// associated WCF ServiceHosts.  
 /// </summary>
 public ConfigurationActions()
 {
     lock (ConfigUtility.masterServiceWebHostSyncObject)
     {
         List<ServiceHostInfo> startupList = null;
         //This is the key call that will startup all services defined in the repository.  In this case, just the config and node services since the Simple Web app does not host any custom services.
         startupList = new List<ServiceHostInfo>(new ServiceHostInfo[] { new ServiceHostInfo(false, null, new object[] { new Trade.BusinessServiceImplementation.ErrorBehaviorAttribute() }, new TradeServiceBSL()) });
         ServiceConfigHelper.MasterServiceWebHost MasterHost = new ServiceConfigHelper.MasterServiceWebHost(new Settings(), new ConfigurationService(), new NodeCommunication(), null, this, startupList, null, new object[] { typeof(IOrderProcessor) }, null);
         setOrderMode(Trade.BusinessServiceConfigurationSettings.Settings.ORDER_PROCESSING_MODE);
     }
 }