You are viewing a plain text version of this content. The canonical link for it is here.
Posted to stonehenge-commits@incubator.apache.org by be...@apache.org on 2009/07/09 03:37:58 UTC

svn commit: r792384 [1/4] - in /incubator/stonehenge/trunk/stocktrader/dotnet: ./ business_service/ business_service/BusinessServiceConfigurationSettings/ business_service/BusinessServiceConsole/ business_service/BusinessServiceImplementation/ business...

Author: bendewey
Date: Thu Jul  9 03:37:55 2009
New Revision: 792384

URL: http://svn.apache.org/viewvc?rev=792384&view=rev
Log:
STONEHENGE-67 commit for Avantika,  thanks Drew for testing.

Great work Avantika, this is a huge patch and I the new UI is great.  This will drastically improve the interop demo.

Please note developers with existing setups will need to run the new DB Scripts.

Added:
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ConfigClient/
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ConfigClient/ConfigClient.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ConfigClient/ConfigClient.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ConfigClient/Properties/
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ConfigClient/Properties/AssemblyInfo.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ConfigClient/stocktrader.snk   (with props)
    incubator/stonehenge/trunk/stocktrader/dotnet/common/DALFactory/Config.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/DALSQLServer/Config.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/IDAL/IConfig.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConfigurationSettings/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConfigurationSettings/ConfigServiceConfigurationSettings.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConfigurationSettings/ConfigServiceConfigurationSettings.sln
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConfigurationSettings/Properties/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConfigurationSettings/Properties/AssemblyInfo.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConfigurationSettings/Settings.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConfigurationSettings/stocktrader.snk   (with props)
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/App.config
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/ConfigServiceConsoleHost.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/Program.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/Properties/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/Properties/AssemblyInfo.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/nettradericon.ico   (with props)
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceConsoleHost/stocktrader.snk   (with props)
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceContract/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceContract/ConfigServiceContract.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceContract/IConfigService.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceContract/Properties/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceContract/Properties/AssemblyInfo.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceContract/stocktrader.snk   (with props)
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/BSConfigRequest.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/BSConfigResponse.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/BSToOPS.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/ClientConfigRequest.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/ClientConfigResponse.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/ClientToBS.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/ConfigServiceDataContract.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/DBConfig.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/OPSConfigRequest.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/OPSConfigResponse.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/Properties/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/Properties/AssemblyInfo.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/ServiceLocation.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceDataContract/stocktrader.snk   (with props)
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceImplementation/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceImplementation/ConfigService.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceImplementation/ConfigServiceImplementation.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceImplementation/CustomCertValidator.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceImplementation/Properties/
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceImplementation/Properties/AssemblyInfo.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceImplementation/stocktrader.snk   (with props)
    incubator/stonehenge/trunk/stocktrader/dotnet/config_service/ConfigServiceSolution.sln
    incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/createdbconfig.sql
    incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/insertdbconfig.sql
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx.cs
Modified:
    incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd
    incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConfigurationSettings/Settings.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/App.config
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/BusinessServiceConsole.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/Program.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/BusinessServiceImplementation.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceSolution.sln
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/DALFactory/StockTraderDALFactory.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/DALSQLServer/StockTraderDALSQLServer.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/IDAL/StockTraderIDAL.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/OrderProcessorServiceConfigurationSettings/OrderProcessorServiceConfigurationSettings.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/OrderProcessorServiceConfigurationSettings/Settings.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ServiceConfigurationSettings/Settings.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/ServiceConfigurationSettings/StockTraderWebApplicationSettings.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/common/StockTraderUtility/SQLHelper.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/common/StockTraderUtility/Utility.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorConsoleServiceHost/App.config
    incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorConsoleServiceHost/OrderProcessorConsoleHost.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorImplementation/OrderProcessorImplementation.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorImplementation/ProcessOrder.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorSolution.sln
    incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/SetupActions/SetupAction.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebAppSolution.sln
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/BusinessServiceClient.cs
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/StockTraderWebApplicationServiceClient.csproj
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Site.master
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Web.config
    incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/style.css

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd Thu Jul  9 03:37:55 2009
@@ -43,14 +43,14 @@
 "%MSBuildToolsPath%msbuild" SetupActions.sln /t:Build /p:Configuration=Debug;Platform="Any CPU"
 "%MSBuildToolsPath%msbuild" SetupActions.sln /t:Build /p:Configuration=release;Platform="Any CPU"
 
-cd ..\..\order_processor
-@if not exist OrderProcessorSolution.sln Goto :Error1
+cd ..\..\config_service
+@if not exist ConfigServiceSolution.sln Goto :Error1
 
-@echo Build order_processor
-"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Clean /p:Configuration=Debug
-"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Clean /p:Configuration=release
-"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Build /p:Configuration=Debug;Platform="Any CPU"
-"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Build /p:Configuration=release;Platform="Any CPU"
+@echo Build config_service
+"%MSBuildToolsPath%msbuild" ConfigServiceSolution.sln /t:Clean /p:Configuration=Debug
+"%MSBuildToolsPath%msbuild" ConfigServiceSolution.sln /t:Clean /p:Configuration=release
+"%MSBuildToolsPath%msbuild" ConfigServiceSolution.sln /t:Build /p:Configuration=Debug;Platform="Any CPU"
+"%MSBuildToolsPath%msbuild" ConfigServiceSolution.sln /t:Build /p:Configuration=release;Platform="Any CPU"
 
 cd ..\business_service
 @if not exist BusinessServiceSolution.sln Goto :Error1
@@ -61,6 +61,15 @@
 "%MSBuildToolsPath%msbuild" BusinessServiceSolution.sln /t:Build /p:Configuration=Debug;Platform="Any CPU"
 "%MSBuildToolsPath%msbuild" BusinessServiceSolution.sln /t:Build /p:Configuration=release;Platform="Any CPU"
 
+cd ..\order_processor
+@if not exist OrderProcessorSolution.sln Goto :Error1
+
+@echo Build order_processor
+"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Clean /p:Configuration=Debug
+"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Clean /p:Configuration=release
+"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Build /p:Configuration=Debug;Platform="Any CPU"
+"%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Build /p:Configuration=release;Platform="Any CPU"
+
 cd ..\trader_client
 @if not exist StockTraderWebAppSolution.sln Goto :Error1
 
@@ -79,6 +88,7 @@
 @echo Are you missing required solutions/directories? Cannot find the solution files (.sln) 
 @echo This build script expects to build from the [dotnet] dir
 @echo .\setup_utilities\SetupActions\
+@echo ..\config_service
 @echo ..\..\order_processor
 @echo ..\business_service
 @echo ..\trader_client\

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/RunServices.bat Thu Jul  9 03:37:55 2009
@@ -30,6 +30,10 @@
 choice /c:12 /n
 if errorlevel 2 SET runMode=release
 
+:CsHost
+IF NOT EXIST "%~dp0config_service\bin\%runMode%\Trade.ConfigServiceConsoleHost.exe" GOTO NoCsHost
+START ".NET Configuration Service" "%~dp0config_service\bin\%runMode%\Trade.ConfigServiceConsoleHost.exe"
+
 :OpsHost
 IF NOT EXIST "%~dp0order_processor\bin\%runMode%\Trade.orderProcessorConsoleHost.exe" GOTO NoOpsHost
 START ".NET Order Processing Service" "%~dp0order_processor\bin\%runMode%\Trade.orderProcessorConsoleHost.exe"
@@ -39,6 +43,11 @@
 START ".NET Business Service" "%~dp0business_service\bin\%runMode%\Trade.BusinessServiceConsole.exe"
 GOTO Complete
 
+:NoCsHost
+@echo No Configuration Service Host available in %runMode%
+SET erroroccurred=1
+GOTO OpsHost
+
 :NoOpsHost
 @echo No Order Processor Host available in %runMode%
 SET errorOccurred=1

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConfigurationSettings/Settings.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConfigurationSettings/Settings.cs?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConfigurationSettings/Settings.cs (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConfigurationSettings/Settings.cs Thu Jul  9 03:37:55 2009
@@ -75,13 +75,13 @@
         //            REPOSITORY CONFIGURATION KEYS TO MAP THE REPOSITORY SETTING TO A CUSTOM (APP-SPECIFIC) FIELD NAME IN THE SETTINGS CLASS, AS
         //            WELL AS UPDATE SETTINGS ON LIVE CLUSTERED SYSTEMS WITHOUT APP RESTARTS.
         public static string EVENT_LOG;
+        public static string CS_DOTNET_ENDPOINT_CONFIG_HTTP;
         public static string OPS_DOTNET_ENDPOINT_CONFIG_HTTP;
         public static string OPS_DOTNET_ENDPOINT_CONFIG_WSHTTP;
         public static string OPS_PHP_ENDPOINT_CONFIG_HTTP;
         public static string OPS_PHP_ENDPOINT_CONFIG_WSHTTP;
         public static string OPS_WSAS_ENDPOINT_CONFIG_HTTP;
         public static string OPS_WSAS_ENDPOINT_CONFIG_WSHTTP;
-        public static string ORDER_PROCESSING_MODE; 
         public static string DBServer; 
         public static string Database; 
         public static string UserID; 
@@ -111,21 +111,12 @@
 
         //set on startup based on config settings from repository
         public static int TRANSACTION_MODEL = -1;
-        public static int orderMode = -1;
 
         public Settings()
         {
-            if (Settings.ORDER_PROCESSING_MODE != null)
-            {
-                ConfigurationManager.RefreshSection("appSettings");
-            }
 
-            Settings.ORDER_PROCESSING_MODE = ConfigurationManager.AppSettings.Get("ORDER_PROCESSING_MODE");
+            Settings.CS_DOTNET_ENDPOINT_CONFIG_HTTP = ConfigurationManager.AppSettings.Get("CS_DOTNET_ENDPOINT_CONFIG_HTTP");
             Settings.EVENT_LOG = ConfigurationManager.AppSettings.Get("EVENT_LOG");
-            Settings.DBServer = ConfigurationManager.AppSettings.Get("DBServer");
-            Settings.Database = ConfigurationManager.AppSettings.Get("Database");
-            Settings.UserID = ConfigurationManager.AppSettings.Get("UserID");
-            Settings.Password = ConfigurationManager.AppSettings.Get("Password");
             Settings.MinDBConnections = Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinDBConnections"));
             Settings.MaxDBConnections = Convert.ToInt32(ConfigurationManager.AppSettings.Get("MaxDBConnections"));
             Settings.TRADEDB_SQL_CONN_STRING = ConfigurationManager.AppSettings.Get("TRADEDB_SQL_CONN_STRING");
@@ -145,61 +136,10 @@
             Settings.BSL_VALID_USERID = ConfigurationManager.AppSettings.Get("BSL_VALID_USERID");
             Settings.BSL_VALID_PASSWORD = ConfigurationManager.AppSettings.Get("BSL_VALID_PASSWORD");
             buildConnString();
-            setOrderMode();
             setTxModel();
         }
 
         /// <summary>
-        /// Sets the selected OrderMode to an int constant. Faster for switch statements than parsing a string.
-        /// </summary>
-        public static void setOrderMode()
-        {
-            switch (ORDER_PROCESSING_MODE)
-            {
-
-                case StockTraderUtility.ORDER_STRING_ASync_DotNet_Http:
-                    {
-                        orderMode = StockTraderUtility.ORDER_ASync_DotNet_Http;
-                        break;
-                    }
-                case StockTraderUtility.ORDER_STRING_ASync_DotNet_WsHttp_MSec:
-                    {
-                        orderMode = StockTraderUtility.ORDER_ASync_DotNet_WsHttp_MSec;
-                        break;
-                    }
-                
-                case StockTraderUtility.ORDER_STRING_ASync_PHP_Http:
-                    {
-                        orderMode = StockTraderUtility.ORDER_ASync_PHP_Http;
-                        break;
-                    }
-
-                case StockTraderUtility.ORDER_STRING_ASync_PHP_WsHttp_MSec:
-                    {
-                        orderMode = StockTraderUtility.ORDER_ASync_PHP_WsHttp_MSec;
-                        break;
-                    }
-
-                case StockTraderUtility.ORDER_STRING_ASync_WSAS_Http:
-                    {
-                        orderMode = StockTraderUtility.ORDER_ASync_WSAS_Http;
-                        break;
-                    }
-
-                case StockTraderUtility.ORDER_STRING_ASync_WSAS_WsHttp_MSec:
-                    {
-                        orderMode = StockTraderUtility.ORDER_ASync_WSAS_WsHttp_MSec;
-                        break;
-                    }
-                default:
-                    {
-                        throw new Exception(ORDER_PROCESSING_MODE + ": " + StockTraderUtility.EXCEPTION_MESSAGE_INVALID_ORDERMODE_CONFIG);
-                    }
-            }
-            return;
-        }
-
-        /// <summary>
         /// Sets the selected transaction model to use to an int constant. 
         /// </summary>
         public static void setTxModel()

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/App.config
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/App.config?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/App.config (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/App.config Thu Jul  9 03:37:55 2009
@@ -28,23 +28,9 @@
   <!---THIS IS A CONFIG SERVICE CUSTOM CONFIG SECTION USED TO SPECIFIY individual ServiceEndpoint Identities, when desired-->
   <appSettings>
     <add key="EVENT_LOG" value="Trade Business Services" />
-    <add key="ORDER_PROCESSING_MODE" value="ASync_DotNet_Http" />
-    <!--
-       //Valid Config Values for user-set "OrderMode" config setting.
-        public const string ORDER_STRING_ASync_DotNet_Http = "ASync_DotNet_Http";
-        public const string ORDER_STRING_ASync_DotNet_WsHttp_MSec = "ASync_DotNet_WsHttp_MSecurity";
-        public const string ORDER_STRING_ASync_PHP_Http = "ASync_PHP_Http";
-        public const string ORDER_STRING_ASync_PHP_WsHttp_MSec = "ASync_PHP_WsHttp_MSecurity";
-        public const string ORDER_STRING_ASync_WSAS_Http = "ASync_WSAS_Http";
-        public const string ORDER_STRING_ASync_WSAS_WsHttp_MSec = "ASync_WSAS_WsHttp_MSecurity";
 
-    -->
     <add key="BSL_VALID_USERID" value="bsloperationuser"/>
     <add key="BSL_VALID_PASSWORD" value="yyy"/>
-    <add key="DBServer" value="localhost" />
-    <add key="Database" value="StockTraderDB" />
-    <add key="UserID" value="trade" />
-    <add key="Password" value="yyy" />
     <add key="MinDBConnections" value="20" />
     <add key="MaxDBConnections" value="20" />
     <add key="DAL" value="Trade.DALSQLServer" />
@@ -57,6 +43,7 @@
     <!--Can't be ZERO-->
     <add key="DISPLAYNUMBERORDERITERATIONS" value="3" />
     <!--Can't be ZERO-->
+    <add key="CS_DOTNET_ENDPOINT_CONFIG_HTTP" value="ConfigClient_DotNet_BasicHttpBinding"/>
     <add key="OPS_DOTNET_ENDPOINT_CONFIG_HTTP" value="OpsClient_DotNet_BasicHttpBinding" />
     <add key="OPS_DOTNET_ENDPOINT_CONFIG_WSHTTP" value="OpsClient_DotNet_WsHttpBinding_MSec" />
     <add key="OPS_PHP_ENDPOINT_CONFIG_HTTP" value="OpsClient_PHP_BasicHttpBinding" />
@@ -110,7 +97,13 @@
     
     *********************************************************-->
     <client>
-      <!-- DotNet Endpoints -->
+      <!-- DotNet Config Endpoints -->
+      <endpoint address="http://localhost:7000/tradeconfigservice"
+                contract="Trade.ConfigServiceContract.IConfigService"
+                binding="basicHttpBinding"
+                name="ConfigClient_DotNet_BasicHttpBinding" />
+
+      <!-- DotNet OPS Endpoints -->
       <endpoint address="http://localhost:8000/tradeorderprocessor" 
                 contract="Trade.OrderProcessorContract.IOrderProcessor"
                 binding="basicHttpBinding" bindingConfiguration="OpsClient_BasicHttpBinding" 
@@ -157,7 +150,7 @@
         </identity>
       </endpoint>
     </client>
-    
+
     
     <!--********************************************************
         

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/BusinessServiceConsole.csproj
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/BusinessServiceConsole.csproj?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/BusinessServiceConsole.csproj (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/BusinessServiceConsole.csproj Thu Jul  9 03:37:55 2009
@@ -87,6 +87,22 @@
     <Content Include="stocktrader.snk" />
   </ItemGroup>
   <ItemGroup>
+    <ProjectReference Include="..\..\common\ConfigClient\ConfigClient.csproj">
+      <Project>{D82DED61-E8CC-4530-A271-C74500ABBFA9}</Project>
+      <Name>ConfigClient</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\common\DALFactory\StockTraderDALFactory.csproj">
+      <Project>{F67C8D85-6DC0-45CD-A748-636E3881E2F5}</Project>
+      <Name>StockTraderDALFactory</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\common\DALSQLServer\StockTraderDALSQLServer.csproj">
+      <Project>{34C5AB90-E195-4BEE-A895-7AB1F81D552D}</Project>
+      <Name>StockTraderDALSQLServer</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\common\IDAL\StockTraderIDAL.csproj">
+      <Project>{509EB16A-6586-4200-8323-32438C9B47DC}</Project>
+      <Name>StockTraderIDAL</Name>
+    </ProjectReference>
     <ProjectReference Include="..\..\common\OrderProcessorServiceConfigurationSettings\OrderProcessorServiceConfigurationSettings.csproj">
       <Project>{B28867CC-DD77-4F17-BA01-92625C235F6C}</Project>
       <Name>OrderProcessorServiceConfigurationSettings</Name>
@@ -95,6 +111,18 @@
       <Project>{382E6E1C-E430-4F6C-BC41-5D84A3798B02}</Project>
       <Name>Utility</Name>
     </ProjectReference>
+    <ProjectReference Include="..\..\config_service\ConfigServiceConfigurationSettings\ConfigServiceConfigurationSettings.csproj">
+      <Project>{5A192168-838E-4DD1-A5E9-9EE191B941FE}</Project>
+      <Name>ConfigServiceConfigurationSettings</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\config_service\ConfigServiceContract\ConfigServiceContract.csproj">
+      <Project>{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}</Project>
+      <Name>ConfigServiceContract</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\config_service\ConfigServiceDataContract\ConfigServiceDataContract.csproj">
+      <Project>{82B5FA73-8A82-4DC0-B473-43B78543668B}</Project>
+      <Name>ConfigServiceDataContract</Name>
+    </ProjectReference>
     <ProjectReference Include="..\..\order_processor\OrderProcessorContract\OrderProcessorContract.csproj">
       <Project>{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}</Project>
       <Name>OrderProcessorContract</Name>

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/Program.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/Program.cs?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/Program.cs (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceConsole/Program.cs Thu Jul  9 03:37:55 2009
@@ -53,6 +53,12 @@
 using Trade.OrderProcessorContract;
 using Trade.OrderProcessorServiceConfigurationSettings;
 using Trade.Utility;
+using Trade.ConfigServiceContract;
+using Trade.ConfigServiceConfigurationSettings;
+using Trade.IDAL;
+using Trade.DALFactory;
+using Trade.ConfigClient;
+using Trade.ConfigServiceDataContract;
 
 
 namespace Trade.BusinessServiceConsole
@@ -93,6 +99,7 @@
                 serviceHost = new ServiceHost(serviceType, TradeServiceUriBase);
                 addEndpointsAndBehaviors(serviceHost, TradeServiceUriBase);
                 serviceHost.Open();
+
             }
 
 
@@ -137,8 +144,14 @@
                 {
                     serviceHost.start();
 
-                    Console.WriteLine(" ORDER_PROCESSING_MODE is currently = {0}\n",
-                                                          Trade.BusinessServiceConfigurationSettings.Settings.ORDER_PROCESSING_MODE);
+                    //Test to see what the database specifies as the Order Processing Mode
+                    var configClient = new ConfigServiceClient();
+                    var bsRequest = new BSConfigRequest();
+                    bsRequest.BSName = "DOTNET_BS";
+                    var bsConfig = configClient.GetBSConfig(bsRequest);
+
+                    Console.WriteLine(" ORDER_PROCESSING_MODE is currently = {0}\n", bsConfig.OPSName);
+
                     Console.WriteLine(" {0} is started\n", Console.Title);
 
                     Console.WriteLine("Press Enter to quit or Ctrl+R to restart");

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/BusinessServiceImplementation.csproj
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/BusinessServiceImplementation.csproj?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/BusinessServiceImplementation.csproj (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/BusinessServiceImplementation.csproj Thu Jul  9 03:37:55 2009
@@ -81,21 +81,21 @@
     <Content Include="stocktrader.snk" />
   </ItemGroup>
   <ItemGroup>
-    <ProjectReference Include="..\..\common\DALFactory\StockTraderDALFactory.csproj">
-      <Project>{F67C8D85-6DC0-45CD-A748-636E3881E2F5}</Project>
-      <Name>StockTraderDALFactory</Name>
-    </ProjectReference>
-    <ProjectReference Include="..\..\common\IDAL\StockTraderIDAL.csproj">
-      <Project>{509EB16A-6586-4200-8323-32438C9B47DC}</Project>
-      <Name>StockTraderIDAL</Name>
+    <ProjectReference Include="..\..\common\ConfigClient\ConfigClient.csproj">
+      <Project>{D82DED61-E8CC-4530-A271-C74500ABBFA9}</Project>
+      <Name>ConfigClient</Name>
     </ProjectReference>
     <ProjectReference Include="..\..\common\StockTraderUtility\Utility.csproj">
       <Project>{382E6E1C-E430-4F6C-BC41-5D84A3798B02}</Project>
       <Name>Utility</Name>
     </ProjectReference>
-    <ProjectReference Include="..\..\order_processor\OrderProcessorContract\OrderProcessorContract.csproj">
-      <Project>{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}</Project>
-      <Name>OrderProcessorContract</Name>
+    <ProjectReference Include="..\..\config_service\ConfigServiceContract\ConfigServiceContract.csproj">
+      <Project>{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}</Project>
+      <Name>ConfigServiceContract</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\config_service\ConfigServiceDataContract\ConfigServiceDataContract.csproj">
+      <Project>{82B5FA73-8A82-4DC0-B473-43B78543668B}</Project>
+      <Name>ConfigServiceDataContract</Name>
     </ProjectReference>
     <ProjectReference Include="..\BusinessServiceConfigurationSettings\BusinessServiceConfigurationSettings.csproj">
       <Project>{ED14B721-A6F1-4B65-89FA-18B78345CB5A}</Project>
@@ -109,10 +109,6 @@
       <Project>{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}</Project>
       <Name>BusinessServiceDataContract</Name>
     </ProjectReference>
-    <ProjectReference Include="..\OrderProcessorASyncClient\OrderProcessorAsyncClient.csproj">
-      <Project>{623BC346-84FA-4B9E-B043-811DB7FBEC2A}</Project>
-      <Name>OrderProcessorAsyncClient</Name>
-    </ProjectReference>
   </ItemGroup>
   <ItemGroup>
     <Folder Include="App_Data\" />

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs Thu Jul  9 03:37:55 2009
@@ -49,6 +49,9 @@
 using Trade.Utility;
 using Trade.OrderProcessorAsyncClient;
 using Trade.OrderProcessorContract;
+using Trade.ConfigClient;
+using Trade.ConfigServiceDataContract;
+using Trade.ConfigServiceContract;
 
 
 namespace Trade.BusinessServiceImplementation
@@ -111,8 +114,19 @@
         public AccountDataModel login(string userid, string password) 
         {
             Console.WriteLine("Logging in for " + userid);
+
+            // Get Config
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
             //Create instance of a DAL, which could be designed for any type of DB backend.
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
+            //TODO: This is the DAL for MSSQL but not for MySQL - find a way to toggle the DAL based on bsConfig.DBName
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
             
             //As feature of the StockTrader DAL, you will see dal.Open, dal.BeginTransaction, dal.CommitTransaction,
             //dal.AbortTransaction and dal.Close methods being invoked in the BSL. The pattern  within this BSL is:
@@ -152,16 +166,13 @@
             //We use Open() to stick with a consistent pattern in this application, since the Close() method IS
             //important.  Look for this pattern in all BSL methods below; with a transaction scope defined
             //only for operations that actually require a transaction per line (c) above.
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);
             try
             {
                 Console.WriteLine("Leaving login for " + userid);
                 return dalCustomer.login(userid, password);
             }
-            catch 
-            {
-                throw;
-            }
             finally
             {
                 //Always close the DAL, this releases its primary DB connection.
@@ -175,8 +186,20 @@
         /// <param name="userID">User id to logout.</param>
         public void logout(string userID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+            
             try
             {
                 dalCustomer.logOutUser(userID);
@@ -199,8 +222,20 @@
         /// <param name="userID">User id to retrieve data for.</param>
         public AccountDataModel getAccountData(string userID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+
             try
             {
                 return dalCustomer.getCustomerByUserID(userID);
@@ -221,8 +256,20 @@
         /// <param name="userID">User id to retrieve data for.</param>
         public AccountProfileDataModel getAccountProfileData(string userID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString); ;
+
             try
             {
                 return dalCustomer.getAccountProfileData(userID);
@@ -243,8 +290,20 @@
         /// <param name="userID">User id to retrieve data for.</param>
         public List<OrderDataModel> getOrders(string userID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+
             try
             {
                 return dalCustomer.getOrders(userID, false, Settings.MAX_QUERY_TOP_ORDERS,Settings.MAX_QUERY_ORDERS);
@@ -265,8 +324,20 @@
         /// <param name="userID">User id to retrieve data for.</param>
         public List<OrderDataModel> getTopOrders(string userID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+
             try
             {
                 return dalCustomer.getOrders(userID, true, Settings.MAX_QUERY_TOP_ORDERS,Settings.MAX_QUERY_ORDERS);
@@ -287,8 +358,20 @@
         /// <param name="userID">User id to retrieve data for.</param>
         public List<OrderDataModel> getClosedOrders(string userID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+
             try
             {
                 return dalCustomer.getClosedOrders(userID);
@@ -310,8 +393,20 @@
         /// <param name="userID">User id to retrieve data for.</param>
         public List<HoldingDataModel> getHoldings(string userID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+
             try
             {
                 return dalCustomer.getHoldings(userID);
@@ -333,8 +428,20 @@
         /// <param name="holdingID">Holding id to retrieve data for.</param>
         public HoldingDataModel getHolding(string userID, int holdingID)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+
             try
             {
                 return dalCustomer.getHolding(userID, holdingID);
@@ -361,7 +468,19 @@
         /// <param name="openBalance">Open balance as specified by user. </param>
         public AccountDataModel register(string userID, string password, string fullname, string address, string email, string creditcard, decimal openBalance)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
 
             //Switch is two let you configure which transaction model you want to benchmark/test.
             switch (Settings.TRANSACTION_MODEL)
@@ -384,7 +503,7 @@
                          using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required, txOps))
                          {
                                 //Now open the connection, after entering tx scope.
-                                dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+                                dalCustomer.Open(connectionString);;
                                 try
                                 {
                                     AccountDataModel newCustomer = addNewRegisteredUser(userID, password, fullname, address, email, creditcard, openBalance);
@@ -410,7 +529,7 @@
                 case (StockTraderUtility.TRANSACTION_MODEL_ADONET_TRANSACTION):
                     {
                             //ADO.NET TX case:  First you need to open the connecton.
-                            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+                            dalCustomer.Open(connectionString);;
 
                             //Now you start TX 
                             dalCustomer.BeginADOTransaction();
@@ -476,8 +595,20 @@
         /// <param name="profileData">Profile data model class with updated info.</param>
         public AccountProfileDataModel updateAccountProfile(AccountProfileDataModel profileData)
         {
-            dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL);
-            dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);;
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalCustomer.Open(connectionString);;
+
             try
             {
                 Console.WriteLine("Account profile updated for " + profileData.userID);
@@ -498,8 +629,20 @@
         /// </summary>
         public MarketSummaryDataModelWS getMarketSummary()
         {
-            dalMarketSummary = Trade.DALFactory.MarketSummary.Create(Settings.DAL);
-            dalMarketSummary.Open(Settings.TRADEDB_SQL_CONN_STRING);
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalMarketSummary = Trade.DALFactory.MarketSummary.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalMarketSummary.Open(connectionString);;
+
             try
             {
                 return dalMarketSummary.getMarketSummaryData();
@@ -520,8 +663,20 @@
         /// <param name="symbol">Symbol to get data for.</param>
         public QuoteDataModel getQuote(string symbol)
         {
-            dalMarketSummary = Trade.DALFactory.MarketSummary.Create(Settings.DAL);
-            dalMarketSummary.Open(Settings.TRADEDB_SQL_CONN_STRING);
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalMarketSummary = Trade.DALFactory.MarketSummary.Create("Trade.DALSQLServer");
+
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+            dalMarketSummary.Open(connectionString);;
+
             try
             {
                 return dalMarketSummary.getQuote(symbol);
@@ -594,7 +749,19 @@
         {
             OrderDataModel order = null;
             HoldingDataModel holding = new HoldingDataModel();
-            dalOrder = Trade.DALFactory.Order.Create(Settings.DAL);
+
+            var configClient = new ConfigServiceClient();
+            var bsRequest = new BSConfigRequest();
+            bsRequest.BSName = "DOTNET_BS";
+            var bsConfig = configClient.GetBSConfig(bsRequest);
+
+            if (bsConfig == null)
+                throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName));
+
+            //Create instance of a DAL, which could be designed for any type of DB backend.
+            dalOrder = Trade.DALFactory.Order.Create("Trade.DALSQLServer");
+            var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort);
+
 
             switch (Settings.TRANSACTION_MODEL)
             {
@@ -606,14 +773,14 @@
                         //Start our System.Transactions tx with the options set above.
                         using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required, txOps))
                         {
-                            dalOrder.Open(Settings.TRADEDB_SQL_CONN_STRING);
+                            dalOrder.Open(connectionString);
                             try
                             {
                                 //Business Step 1:  create the order header.
                                 order = createOrder(orderType, userID, holdingID, symbol, quantity, ref holding);
 
-                                //Business Step 2:  Sets up the interface with the
-                                //async WCF Order Processing Service via a service-to-service call,
+                                //Business Step 2:  Sets up the interface with the 
+                                //async WCF Order Processing Service via a service-to-service call
                                 //distributed/remote.
 
                                 //Fire up our async client;  we follow the same model here as with the
@@ -623,13 +790,26 @@
                                 //easily knowing where communication and proxy logic sits; and make changes to services
                                 //you might want to interface with vs. littering proxy calls throughout the
                                 //business tier itself.
-                                TradeOrderServiceAsyncClient asyncclient = new TradeOrderServiceAsyncClient(Settings.orderMode);
+
+                                //Here, replaced the Settings.orderMode with the database configuration stuff
+                                //Settings.orderMode has become bsConfig.ops
+
+                                //This method clears the cache so that the configuration changes are recognized
+                                //without restarts
+                                TradeServiceWcf.Initialize();
+
+                                //This creates a new client with the orderMode specified using the config info
+                                //from the database. Specifically, the row containing "DOTNET_BS" in the table
+                                //BSTOOPS
+                                TradeOrderServiceAsyncClient asyncclient = new TradeOrderServiceAsyncClient(bsConfig.OPSName);
+                                
                                 asyncclient.processOrderASync(order);
 
                                 tx.Complete();
                                 Console.WriteLine("Order placed of type " + orderType + " for the user " + userID + " in the quantity of " + quantity);
                                 return order;
                             }
+
                             catch
                             {
                                 //If per chance you are doing step-through debugging through here and are getting a
@@ -649,14 +829,14 @@
                 //Repeat for ADO.NET transactions config option case. 
                 case (StockTraderUtility.TRANSACTION_MODEL_ADONET_TRANSACTION):
                     {
-                        dalOrder.Open(Settings.TRADEDB_SQL_CONN_STRING);
+                        dalOrder.Open(connectionString);
                         dalOrder.BeginADOTransaction();
                         try
                         {
                             //Business Step 1:  create the order header.
                             order = createOrder(orderType, userID, holdingID, symbol, quantity, ref holding);
 
-                            //Business Step 2:  Sets up an interface with the
+                            //Business Step 2:  Sets up an interface with the 
                             //async WCF Order Processing Service via a service-to-service call.
 
                             //Fire up our async client;  we follow the same model here as with the
@@ -666,9 +846,10 @@
                             //easily knowing where communication and proxy logic sits; and make changes to services
                             //you might want to interface with vs. littering proxy calls throughout the
                             //business tier itself.
-                            TradeOrderServiceAsyncClient asyncclient = new TradeOrderServiceAsyncClient(Settings.orderMode);
+                            TradeOrderServiceAsyncClient asyncclient = new TradeOrderServiceAsyncClient(bsConfig.OPS);
                             asyncclient.processOrderASync(order);
                             dalOrder.CommitADOTransaction();
+
                             return order;
                         }
                         catch

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceSolution.sln
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceSolution.sln?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceSolution.sln (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceSolution.sln Thu Jul  9 03:37:55 2009
@@ -1,231 +1,136 @@
 
 Microsoft Visual Studio Solution File, Format Version 10.00
 # Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceImplementation", "BusinessServiceImplementation\BusinessServiceImplementation.csproj", "{018CF591-E45C-4E74-B613-CA5C1FCAFE89}"
-	ProjectSection(ProjectDependencies) = postProject
-		{A4759510-6CE9-4692-B348-B8483BCD1447} = {A4759510-6CE9-4692-B348-B8483BCD1447}
-		{ED14B721-A6F1-4B65-89FA-18B78345CB5A} = {ED14B721-A6F1-4B65-89FA-18B78345CB5A}
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A} = {623BC346-84FA-4B9E-B043-811DB7FBEC2A}
-	EndProjectSection
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceConsole", "BusinessServiceConsole\BusinessServiceConsole.csproj", "{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceConfigurationSettings", "BusinessServiceConfigurationSettings\BusinessServiceConfigurationSettings.csproj", "{ED14B721-A6F1-4B65-89FA-18B78345CB5A}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceDataContract", "BusinessServiceDataContract\BusinessServiceDataContract.csproj", "{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}"
-EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceContract", "BusinessServiceContract\BusinessServiceContract.csproj", "{36FA3564-9AF5-496A-805B-6ED262CAAE2B}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceConsole", "BusinessServiceConsole\BusinessServiceConsole.csproj", "{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceDataContract", "BusinessServiceDataContract\BusinessServiceDataContract.csproj", "{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorAsyncClient", "OrderProcessorASyncClient\OrderProcessorAsyncClient.csproj", "{623BC346-84FA-4B9E-B043-811DB7FBEC2A}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceImplementation", "BusinessServiceImplementation\BusinessServiceImplementation.csproj", "{018CF591-E45C-4E74-B613-CA5C1FCAFE89}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderIDAL", "..\common\IDAL\StockTraderIDAL.csproj", "{509EB16A-6586-4200-8323-32438C9B47DC}"
 	ProjectSection(ProjectDependencies) = postProject
-		{A4759510-6CE9-4692-B348-B8483BCD1447} = {A4759510-6CE9-4692-B348-B8483BCD1447}
+		{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C} = {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}
 	EndProjectSection
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderDALFactory", "..\common\DALFactory\StockTraderDALFactory.csproj", "{F67C8D85-6DC0-45CD-A748-636E3881E2F5}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderDALSQLServer", "..\common\DALSQLServer\StockTraderDALSQLServer.csproj", "{34C5AB90-E195-4BEE-A895-7AB1F81D552D}"
+EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utility", "..\common\StockTraderUtility\Utility.csproj", "{382E6E1C-E430-4F6C-BC41-5D84A3798B02}"
 EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OrderProcessor", "OrderProcessor", "{83F5C4D0-E280-4CF1-A9E1-98384CF3369D}"
+EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicClient", "..\common\BasicClient\BasicClient.csproj", "{A4759510-6CE9-4692-B348-B8483BCD1447}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorServiceConfigurationSettings", "..\common\OrderProcessorServiceConfigurationSettings\OrderProcessorServiceConfigurationSettings.csproj", "{B28867CC-DD77-4F17-BA01-92625C235F6C}"
+EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorContract", "..\order_processor\OrderProcessorContract\OrderProcessorContract.csproj", "{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderIDAL", "..\common\IDAL\StockTraderIDAL.csproj", "{509EB16A-6586-4200-8323-32438C9B47DC}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorAsyncClient", "OrderProcessorASyncClient\OrderProcessorAsyncClient.csproj", "{623BC346-84FA-4B9E-B043-811DB7FBEC2A}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderDALFactory", "..\common\DALFactory\StockTraderDALFactory.csproj", "{F67C8D85-6DC0-45CD-A748-636E3881E2F5}"
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfigService", "ConfigService", "{6A0327B8-96E1-4F5D-AACA-7ABF51EEAE5E}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorServiceConfigurationSettings", "..\common\OrderProcessorServiceConfigurationSettings\OrderProcessorServiceConfigurationSettings.csproj", "{B28867CC-DD77-4F17-BA01-92625C235F6C}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigClient", "..\common\ConfigClient\ConfigClient.csproj", "{D82DED61-E8CC-4530-A271-C74500ABBFA9}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderDALSQLServer", "..\common\DALSQLServer\StockTraderDALSQLServer.csproj", "{34C5AB90-E195-4BEE-A895-7AB1F81D552D}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceDataContract", "..\config_service\ConfigServiceDataContract\ConfigServiceDataContract.csproj", "{82B5FA73-8A82-4DC0-B473-43B78543668B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceContract", "..\config_service\ConfigServiceContract\ConfigServiceContract.csproj", "{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}"
+	ProjectSection(ProjectDependencies) = postProject
+		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6} = {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}
+	EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceConfigurationSettings", "..\config_service\ConfigServiceConfigurationSettings\ConfigServiceConfigurationSettings.csproj", "{5A192168-838E-4DD1-A5E9-9EE191B941FE}"
 EndProject
 Global
-	GlobalSection(SubversionScc) = preSolution
-		Svn-Managed = True
-		Manager = AnkhSVN - Subversion Support for Visual Studio
-	EndGlobalSection
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|.NET = Debug|.NET
 		Debug|Any CPU = Debug|Any CPU
-		Debug|Mixed Platforms = Debug|Mixed Platforms
-		Release|.NET = Release|.NET
 		Release|Any CPU = Release|Any CPU
-		Release|Mixed Platforms = Release|Mixed Platforms
 	EndGlobalSection
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Release|.NET.ActiveCfg = Release|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Release|Any CPU.Build.0 = Release|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Debug|.NET.ActiveCfg = Debug|Any CPU
+		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Release|Any CPU.Build.0 = Release|Any CPU
 		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Release|.NET.ActiveCfg = Release|Any CPU
 		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Release|Any CPU.Build.0 = Release|Any CPU
-		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{ED14B721-A6F1-4B65-89FA-18B78345CB5A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|.NET.ActiveCfg = Release|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.Build.0 = Release|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|.NET.ActiveCfg = Debug|Any CPU
 		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|.NET.ActiveCfg = Release|Any CPU
 		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Any CPU.Build.0 = Release|Any CPU
-		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Release|.NET.ActiveCfg = Release|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Release|Any CPU.Build.0 = Release|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{926CCBE6-C658-46E1-BF25-5579BEA6F1E6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Release|.NET.ActiveCfg = Release|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Release|Any CPU.Build.0 = Release|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|.NET.ActiveCfg = Release|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.Build.0 = Release|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Release|.NET.ActiveCfg = Release|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.Build.0 = Release|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|.NET.ActiveCfg = Release|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.Build.0 = Release|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{509EB16A-6586-4200-8323-32438C9B47DC}.Debug|.NET.ActiveCfg = Debug|Any CPU
+		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.Build.0 = Release|Any CPU
+		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{018CF591-E45C-4E74-B613-CA5C1FCAFE89}.Release|Any CPU.Build.0 = Release|Any CPU
 		{509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{509EB16A-6586-4200-8323-32438C9B47DC}.Release|.NET.ActiveCfg = Release|Any CPU
 		{509EB16A-6586-4200-8323-32438C9B47DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{509EB16A-6586-4200-8323-32438C9B47DC}.Release|Any CPU.Build.0 = Release|Any CPU
-		{509EB16A-6586-4200-8323-32438C9B47DC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{509EB16A-6586-4200-8323-32438C9B47DC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|.NET.ActiveCfg = Debug|Any CPU
 		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|.NET.ActiveCfg = Release|Any CPU
 		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Any CPU.Build.0 = Release|Any CPU
-		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|.NET.ActiveCfg = Debug|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|.NET.ActiveCfg = Release|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Any CPU.Build.0 = Release|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
-		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|.NET.ActiveCfg = Debug|Any CPU
 		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
-		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
-		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|.NET.ActiveCfg = Release|Any CPU
 		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Any CPU.Build.0 = Release|Any CPU
-		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
-		{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.Build.0 = Release|Any CPU
+		{A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.Build.0 = Release|Any CPU
+		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Any CPU.Build.0 = Release|Any CPU
+		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.Build.0 = Release|Any CPU
+		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{623BC346-84FA-4B9E-B043-811DB7FBEC2A}.Release|Any CPU.Build.0 = Release|Any CPU
+		{D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Any CPU.Build.0 = Release|Any CPU
+		{82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Any CPU.Build.0 = Release|Any CPU
+		{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Any CPU.Build.0 = Release|Any CPU
+		{5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 	EndGlobalSection
-	GlobalSection(TeamFoundationVersionControl) = preSolution
-		SccNumberOfProjects = 13
-		SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
-		SccTeamFoundationServer = http://tkbgitvstfat10.redmond.corp.microsoft.com:8080/
-		SccLocalPath0 = .
-		SccProjectUniqueName1 = ..\\StockTraderDataAccessLayer\\IDAL\\StockTraderIDAL.csproj
-		SccProjectName1 = ../../../StockTraderDataAccessLayer/IDAL/IDAL
-		SccLocalPath1 = ..\\StockTraderDataAccessLayer\\IDAL
-		SccProjectUniqueName2 = BusinessServiceConfigurationSettings\\BusinessServiceConfigurationSettings.csproj
-		SccProjectName2 = ../../BusinessServiceConfigurationSettings
-		SccLocalPath2 = BusinessServiceConfigurationSettings
-		SccProjectUniqueName3 = BusinessServiceConsole\\BusinessServiceConsole.csproj
-		SccProjectName3 = ../../BusinessServiceConsole
-		SccLocalPath3 = BusinessServiceConsole
-		SccProjectUniqueName4 = BusinessServiceContract\\BusinessServiceContract.csproj
-		SccProjectName4 = ../../BusinessServiceContract
-		SccLocalPath4 = BusinessServiceContract
-		SccProjectUniqueName5 = BusinessServiceHost\\BusinessServiceHost.csproj
-		SccProjectName5 = ../../BusinessServiceHost
-		SccLocalPath5 = BusinessServiceHost
-		SccProjectUniqueName6 = BusinessServiceHostConfigurationImplementation\\BusinessServiceHostConfigurationImplementation.csproj
-		SccProjectName6 = ../../BusinessServiceHostConfigurationImplementation
-		SccLocalPath6 = BusinessServiceHostConfigurationImplementation
-		SccProjectUniqueName7 = BusinessServiceImplementation\\BusinessServiceImplementation.csproj
-		SccProjectName7 = ../../BusinessServiceImplementation
-		SccLocalPath7 = BusinessServiceImplementation
-		SccProjectUniqueName8 = ..\\StockTraderOrderProcessorService\\OrderProcessorDataContract\\OrderProcessorDataContract.csproj
-		SccProjectName8 = ../../../StockTraderOrderProcessorService/OrderProcessorDataContract
-		SccLocalPath8 = ..\\StockTraderOrderProcessorService\\OrderProcessorDataContract
-		SccWebProject9 = true
-		SccProjectUniqueName9 = StockTraderBusinessServiceIISHosted\\TradeWebServiceWcf
-		SccProjectName9 = .
-		SccLocalPath9 = .
-		SccProjectFilePathRelativizedFromConnection9 = StockTraderBusinessServiceIISHosted\\TradeWebServiceWcf\\
-		SccProjectEnlistmentChoice9 = 2
-		SccProjectUniqueName10 = ..\\StockTraderDataAccessLayer\\DALSQLServer\\StockTraderDALSQLServer.csproj
-		SccProjectName10 = ../../../StockTraderDataAccessLayer/DALSQLServer
-		SccLocalPath10 = ..\\StockTraderDataAccessLayer\\DALSQLServer
-		SccProjectUniqueName11 = ..\\StockTraderDataAccessLayer\\DALFactory\\StockTraderDALFactory.csproj
-		SccProjectName11 = ../../../StockTraderDataAccessLayer/DALFactory
-		SccLocalPath11 = ..\\StockTraderDataAccessLayer\\DALFactory
-		SccProjectUniqueName12 = BusinessServiceDataContract\\BusinessServiceDataContract.csproj
-		SccProjectName12 = ../../BusinessServiceDataContract
-		SccLocalPath12 = BusinessServiceDataContract
+	GlobalSection(NestedProjects) = preSolution
+		{A4759510-6CE9-4692-B348-B8483BCD1447} = {83F5C4D0-E280-4CF1-A9E1-98384CF3369D}
+		{B28867CC-DD77-4F17-BA01-92625C235F6C} = {83F5C4D0-E280-4CF1-A9E1-98384CF3369D}
+		{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4} = {83F5C4D0-E280-4CF1-A9E1-98384CF3369D}
+		{623BC346-84FA-4B9E-B043-811DB7FBEC2A} = {83F5C4D0-E280-4CF1-A9E1-98384CF3369D}
+		{D82DED61-E8CC-4530-A271-C74500ABBFA9} = {6A0327B8-96E1-4F5D-AACA-7ABF51EEAE5E}
+		{82B5FA73-8A82-4DC0-B473-43B78543668B} = {6A0327B8-96E1-4F5D-AACA-7ABF51EEAE5E}
+		{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C} = {6A0327B8-96E1-4F5D-AACA-7ABF51EEAE5E}
+		{5A192168-838E-4DD1-A5E9-9EE191B941FE} = {6A0327B8-96E1-4F5D-AACA-7ABF51EEAE5E}
 	EndGlobalSection
 EndGlobal

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.cs?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.cs (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.cs Thu Jul  9 03:37:55 2009
@@ -62,56 +62,54 @@
     public class TradeOrderServiceAsyncClient : IOrderProcessor
     {
         public Client.Client opsclient;
-        private int _orderMode = -1;
         private string _clientConfig;
 
         /// <summary>
         /// This will initialize the correct client/endpoint based on the OrderMode setting the user has set
-        /// in the repository.
+        /// in the database BSTOPS table
         /// </summary>
         /// <param name="orderMode">The order mode, determines what type of binding/remote interface is used for communication.</param>
-        public TradeOrderServiceAsyncClient(int orderMode)
+        public TradeOrderServiceAsyncClient(string orderMode)
         {
-            _orderMode = orderMode;
             switch (orderMode)
             {
                 default:
                     {
                         throw new Exception("OrderMode not recognized");
                     }
-                case StockTraderUtility.ORDER_ASync_DotNet_Http:
+                case StockTraderUtility.DOTNET_OPS:
                     {
                         _clientConfig = Settings.OPS_DOTNET_ENDPOINT_CONFIG_HTTP;
                         break;
                     }
-               
-                case StockTraderUtility.ORDER_ASync_DotNet_WsHttp_MSec:
+
+                case StockTraderUtility.DOTNET_OPSSEC:
                     {
                         _clientConfig = Settings.OPS_DOTNET_ENDPOINT_CONFIG_WSHTTP;
                         break;
                     }
-                case StockTraderUtility.ORDER_ASync_PHP_Http:
+                case StockTraderUtility.PHP_OPS:
                     {
                         _clientConfig = Settings.OPS_PHP_ENDPOINT_CONFIG_HTTP;
                         break;
                     }
-                case StockTraderUtility.ORDER_ASync_PHP_WsHttp_MSec:
+                case StockTraderUtility.PHP_OPSSEC:
                     {
                         _clientConfig = Settings.OPS_PHP_ENDPOINT_CONFIG_WSHTTP;
                         break;
                     }
-                case StockTraderUtility.ORDER_ASync_WSAS_Http:
+                case StockTraderUtility.JAVA_OPS:
                     {
                         _clientConfig = Settings.OPS_WSAS_ENDPOINT_CONFIG_HTTP;
                         break;
                     }
-                case StockTraderUtility.ORDER_ASync_WSAS_WsHttp_MSec:
+                case StockTraderUtility.JAVA_OPSSEC:
                     {
                         _clientConfig = Settings.OPS_WSAS_ENDPOINT_CONFIG_WSHTTP;
                         break;
                     }
             }
-            opsclient = new Client.Client(typeof(IOrderProcessor),_clientConfig);
+            opsclient = new Client.Client(typeof(IOrderProcessor), _clientConfig);
         }
 
         /// <summary>

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.csproj
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.csproj?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.csproj (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/OrderProcessorASyncClient/OrderProcessorAsyncClient.csproj Thu Jul  9 03:37:55 2009
@@ -71,6 +71,10 @@
       <Project>{A4759510-6CE9-4692-B348-B8483BCD1447}</Project>
       <Name>BasicClient</Name>
     </ProjectReference>
+    <ProjectReference Include="..\..\common\OrderProcessorServiceConfigurationSettings\OrderProcessorServiceConfigurationSettings.csproj">
+      <Project>{B28867CC-DD77-4F17-BA01-92625C235F6C}</Project>
+      <Name>OrderProcessorServiceConfigurationSettings</Name>
+    </ProjectReference>
     <ProjectReference Include="..\..\common\StockTraderUtility\Utility.csproj">
       <Project>{382E6E1C-E430-4F6C-BC41-5D84A3798B02}</Project>
       <Name>Utility</Name>

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.cs?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.cs (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.cs Thu Jul  9 03:37:55 2009
@@ -37,7 +37,6 @@
 using System.Diagnostics;
 using System.Reflection;
 using Trade.Utility;
-using Trade.BusinessServiceContract;
 
 
 namespace Trade.Client

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.csproj
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.csproj?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.csproj (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/common/BasicClient/BasicClient.csproj Thu Jul  9 03:37:55 2009
@@ -66,10 +66,6 @@
     <None Include="stocktrader.snk" />
   </ItemGroup>
   <ItemGroup>
-    <ProjectReference Include="..\..\business_service\BusinessServiceContract\BusinessServiceContract.csproj">
-      <Project>{36FA3564-9AF5-496A-805B-6ED262CAAE2B}</Project>
-      <Name>BusinessServiceContract</Name>
-    </ProjectReference>
     <ProjectReference Include="..\StockTraderUtility\Utility.csproj">
       <Project>{382E6E1C-E430-4F6C-BC41-5D84A3798B02}</Project>
       <Name>Utility</Name>