incubator-stonehenge-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drew...@apache.org
Subject svn commit: r728165 - in /incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory: ./ Customer.cs MarketSummary.cs Order.cs Properties/ Properties/AssemblyInfo.cs StockTraderDALFactory.csproj stocktrader.snk
Date Fri, 19 Dec 2008 21:48:01 GMT
Author: drewbai
Date: Fri Dec 19 13:48:00 2008
New Revision: 728165

URL: http://svn.apache.org/viewvc?rev=728165&view=rev
Log:
intial commit (second solution)

Added:
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Customer.cs
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/MarketSummary.cs
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Order.cs
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Properties/
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Properties/AssemblyInfo.cs
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/StockTraderDALFactory.csproj
    incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/stocktrader.snk
  (with props)

Added: incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Customer.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Customer.cs?rev=728165&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Customer.cs (added)
+++ incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Customer.cs Fri
Dec 19 13:48:00 2008
@@ -0,0 +1,43 @@
+//  .Net StockTrader Sample WCF Application for Benchmarking, Performance Analysis and Design
Considerations for Service-Oriented Applications
+
+//======================================================================================================
+// The Factory class that returns an instance of the Customer Data Access Class, part of
the Data Access 
+// Layer (DAL).  This will return either a SQL Server DAL, or an Oracle DAL, depending on
the configuration
+// the .NET StockTrader application is running in, as set in the repository via ConfigWeb.
To run against
+// Oracle 10G or 11G, you will need to download Oracle's .NET ODP and Oracle client for Windows,
and install
+// on your nodes.
+//======================================================================================================
+//======================================================================================================
+// Code originally contributed by Microsoft Corporation.
+// This contribution to the Stonehenge project is limited strictly 
+// to the source code that is submitted in this submission.  
+// Any technology, including underlying platform technology, 
+// that is referenced or required by the submitted source code 
+// is not a part of the contribution.  
+// For example and not by way of limitation, 
+// any systems/Windows libraries (WPF, WCF, ASP.NET etc.) 
+// required to run the submitted source code is not a part of the contribution
+//======================================================================================================
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Reflection;
+using System.Configuration;
+using System.Security.Policy;
+using Trade.IDAL;
+
+namespace Trade.DALFactory
+{
+    public sealed class Customer
+    {
+
+        public static Trade.IDAL.ICustomer Create(string path)
+        {
+           
+            string className = path + ".Customer";
+
+            // Using the evidence given in the config file load the appropriate assembly
and class
+            return (Trade.IDAL.ICustomer)Assembly.Load(path).CreateInstance(className);
+        }
+    }
+}

Added: incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/MarketSummary.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/MarketSummary.cs?rev=728165&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/MarketSummary.cs
(added)
+++ incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/MarketSummary.cs
Fri Dec 19 13:48:00 2008
@@ -0,0 +1,33 @@
+//  .Net StockTrader Sample WCF Application for Benchmarking, Performance Analysis and Design
Considerations for Service-Oriented Applications
+
+//======================================================================================================
+// The Factory class that returns an instance of the MarketSummary Data Access Class, part
of the Data Access 
+// Layer (DAL).  This will return either a SQL Server DAL, or an Oracle DAL, depending on
the configuration
+// the .NET StockTrader application is running in, as set in the repository via ConfigWeb.
To run against
+// Oracle 10G or 11G, you will need to download Oracle's .NET ODP and Oracle client for Windows,
and install
+// on your nodes.
+//======================================================================================================
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Reflection;
+using System.Configuration;
+using System.Security.Policy;
+using Trade.IDAL;
+
+namespace Trade.DALFactory
+{
+   public sealed class MarketSummary
+    {
+        public static Trade.IDAL.IMarketSummary Create(string path)
+        {
+            
+            string className = path + ".MarketSummary";
+
+            // Using the evidence given in the config file load the appropriate assembly
and class
+            return (Trade.IDAL.IMarketSummary)Assembly.Load(path).CreateInstance(className);
+        }
+    }
+}

Added: incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Order.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Order.cs?rev=728165&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Order.cs (added)
+++ incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Order.cs Fri Dec
19 13:48:00 2008
@@ -0,0 +1,35 @@
+//  .Net StockTrader Sample WCF Application for Benchmarking, Performance Analysis and Design
Considerations for Service-Oriented Applications
+
+//======================================================================================================
+// The Factory class that returns an instance of the Order Data Access Class, part of the
Data Access 
+// Layer (DAL).  This will return either a SQL Server DAL, or an Oracle DAL, depending on
the configuration
+// the .NET StockTrader application is running in, as set in the repository via ConfigWeb.
To run against
+// Oracle 10G or 11G, you will need to download Oracle's .NET ODP and Oracle client for Windows,
and install
+// on your nodes.
+//======================================================================================================
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Reflection;
+using System.Configuration;
+using System.Security.Policy;
+using Trade.IDAL;
+
+namespace Trade.DALFactory
+{
+    public sealed class Order
+    {
+
+        public static Trade.IDAL.IOrder Create(string path)
+        {
+           
+
+            string className = path + ".Order";
+
+            // Using the evidence given in the config file load the appropriate assembly
and class
+            return (Trade.IDAL.IOrder)Assembly.Load(path).CreateInstance(className);
+        }
+    }
+}

Added: incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Properties/AssemblyInfo.cs?rev=728165&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Properties/AssemblyInfo.cs
(added)
+++ incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/Properties/AssemblyInfo.cs
Fri Dec 19 13:48:00 2008
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Trade.DALFactory")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct(".NET StockTrader")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM componenets.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("5b429520-d667-4feb-85d9-05c75c41ddaa")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers 
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("2.0.2.0")]
+[assembly: AssemblyFileVersion("2.0.2.0")]
+

Added: incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/StockTraderDALFactory.csproj
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/StockTraderDALFactory.csproj?rev=728165&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/StockTraderDALFactory.csproj
(added)
+++ incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/StockTraderDALFactory.csproj
Fri Dec 19 13:48:00 2008
@@ -0,0 +1,74 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="3.5">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.30729</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{F67C8D85-6DC0-45CD-A748-636E3881E2F5}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Trade.DALFactory</RootNamespace>
+    <AssemblyName>Trade.DALFactory</AssemblyName>
+    <SignAssembly>true</SignAssembly>
+    <AssemblyOriginatorKeyFile>stocktrader.snk</AssemblyOriginatorKeyFile>
+    <FileUpgradeFlags>
+    </FileUpgradeFlags>
+    <UpgradeBackupLocation>
+    </UpgradeBackupLocation>
+    <OldToolsVersion>2.0</OldToolsVersion>
+    <SccProjectName>
+    </SccProjectName>
+    <SccLocalPath>
+    </SccLocalPath>
+    <SccAuxPath>
+    </SccAuxPath>
+    <SccProvider>
+    </SccProvider>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <PlatformTarget>AnyCPU</PlatformTarget>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.configuration" />
+    <Reference Include="System.Core">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+    <Reference Include="Trade.IDAL, Version=2.0.2.0, Culture=neutral, PublicKeyToken=aaca655dc76c580b,
processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\SharedLibraries\Trade.IDAL.dll</HintPath>
+    </Reference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Customer.cs" />
+    <Compile Include="MarketSummary.cs" />
+    <Compile Include="Order.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="stocktrader.snk" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <PropertyGroup>
+    <PostBuildEvent>copy "$(TargetPath)" ..\..\..\..\SharedLibraries
+copy "$(TargetDir)$(TargetName).pdb" ..\..\..\..\SharedLibraries</PostBuildEvent>
+  </PropertyGroup>
+</Project>
\ No newline at end of file

Added: incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/stocktrader.snk
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/stocktrader.snk?rev=728165&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/DALFactory/stocktrader.snk
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message