Author: drewbai
Date: Fri Dec 19 13:47:24 2008
New Revision: 728163
URL: http://svn.apache.org/viewvc?rev=728163&view=rev
Log:
intial commit (second solution)
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/ICustomer.cs
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IMarketSummary.cs
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IOrder.cs
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/Properties/
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/Properties/AssemblyInfo.cs
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/StockTraderIDAL.csproj
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/stocktrader.snk
(with props)
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/ICustomer.cs
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/ICustomer.cs?rev=728163&view=auto
==============================================================================
---
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/ICustomer.cs
(added)
+++
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/ICustomer.cs
Fri Dec 19 13:47:24 2008
@@ -0,0 +1,47 @@
+// .Net StockTrader Sample WCF Application for Benchmarking, Performance
Analysis and Design Considerations for Service-Oriented Applications
+
+//======================================================================================================
+// An interface implemented by the DAL.
+//======================================================================================================
+
+//======================================================================================================
+// 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;
+using System.Collections.Generic;
+using Trade.BusinessServiceDataContract;
+
+namespace Trade.IDAL
+{
+ public interface ICustomer
+ {
+ void BeginADOTransaction();
+ void RollBackTransaction();
+ void CommitADOTransaction();
+ void Open(string connString);
+ void Close();
+ void updateAccountBalance(int accountID, decimal total);
+ AccountDataModel login(string userId, string password);
+ void logOutUser(string userID);
+ AccountDataModel getCustomerByUserID(string UserID);
+ AccountProfileDataModel getAccountProfileData(string userID);
+ List<OrderDataModel> getClosedOrders(string userId);
+ List<HoldingDataModel> getHoldings(string userID);
+ HoldingDataModel getHoldingForUpdate(int orderID);
+ HoldingDataModel getHolding(string userID, int holdingID);
+ void insertAccount(AccountDataModel customer);
+ void insertAccountProfile(AccountProfileDataModel customerprofile);
+ List<OrderDataModel> getOrders(string userID, bool top, int maxTop,
int maxDefault);
+ AccountProfileDataModel update(AccountProfileDataModel
customerprofile);
+ }
+}
\ No newline at end of file
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IMarketSummary.cs
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IMarketSummary.cs?rev=728163&view=auto
==============================================================================
---
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IMarketSummary.cs
(added)
+++
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IMarketSummary.cs
Fri Dec 19 13:47:24 2008
@@ -0,0 +1,26 @@
+// .Net StockTrader Sample WCF Application for Benchmarking, Performance
Analysis and Design Considerations for Service-Oriented Applications
+
+//======================================================================================================
+// An interface implemented by the DAL.
+//======================================================================================================
+
+
+using System;
+using Trade.BusinessServiceDataContract;
+using System.Collections;
+
+namespace Trade.IDAL
+{
+ public interface IMarketSummary
+ {
+ void BeginADOTransaction();
+ void RollBackTransaction();
+ void CommitADOTransaction();
+ void Open(string connString);
+ void Close();
+ MarketSummaryDataModelWS getMarketSummaryData();
+ QuoteDataModel getQuote(string symbol);
+ QuoteDataModel getQuoteForUpdate(string symbol);
+ void updateStockPriceVolume(double Quantity, QuoteDataModel quote);
+ }
+}
\ No newline at end of file
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IOrder.cs
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IOrder.cs?rev=728163&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IOrder.cs
(added)
+++ incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/IOrder.cs
Fri Dec 19 13:47:24 2008
@@ -0,0 +1,34 @@
+// .Net StockTrader Sample WCF Application for Benchmarking, Performance
Analysis and Design Considerations for Service-Oriented Applications
+
+//======================================================================================================
+// An interface implemented by the DAL.
+//======================================================================================================
+
+
+using System;
+using System.Collections;
+using System.Data.SqlClient;
+using Trade.BusinessServiceDataContract;
+
+namespace Trade.IDAL
+{
+ public interface IOrder
+ {
+ void BeginADOTransaction();
+ void RollBackTransaction();
+ void CommitADOTransaction();
+ void Open(string connString);
+ void Close();
+ OrderDataModel createOrder(string userID, string symbol, string
orderType, double quantity, int holdingID );
+ int createHolding(OrderDataModel order);
+ void updateHolding(int holdingid, double quantity);
+ void updateOrder(OrderDataModel order);
+ void deleteHolding(int holdingid);
+ QuoteDataModel getQuoteForUpdate(string symbol);
+ void closeOrder(OrderDataModel order);
+ void updateAccountBalance(int accountID, decimal total);
+ void updateStockPriceVolume(double quantity, QuoteDataModel quote);
+ HoldingDataModel getHoldingForUpdate(int orderID);
+ HoldingDataModel getHolding(int holdingID);
+ }
+}
\ No newline at end of file
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/Properties/AssemblyInfo.cs
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/Properties/AssemblyInfo.cs?rev=728163&view=auto
==============================================================================
---
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/Properties/AssemblyInfo.cs
(added)
+++
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/Properties/AssemblyInfo.cs
Fri Dec 19 13:47:24 2008
@@ -0,0 +1,34 @@
+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.IDAL")]
+[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 components. 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("cfcb1713-5465-447e-864e-b42fb4053206")]
+
+// 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/IDAL/StockTraderIDAL.csproj
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/StockTraderIDAL.csproj?rev=728163&view=auto
==============================================================================
---
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/StockTraderIDAL.csproj
(added)
+++
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/StockTraderIDAL.csproj
Fri Dec 19 13:47:24 2008
@@ -0,0 +1,79 @@
+<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>{509EB16A-6586-4200-8323-32438C9B47DC}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Trade.IDAL</RootNamespace>
+ <AssemblyName>Trade.IDAL</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>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="Trade.BusinessServiceDataContract, Version=2.0.2.0,
Culture=neutral, PublicKeyToken=aaca655dc76c580b, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\SharedLibraries\Trade.BusinessServiceDataContract.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ICustomer.cs" />
+ <Compile Include="IMarketSummary.cs" />
+ <Compile Include="IOrder.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="stocktrader.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets
below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+ <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/IDAL/stocktrader.snk
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/stocktrader.snk?rev=728163&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/IDAL/stocktrader.snk
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream