Author: drewbai
Date: Fri Dec 19 13:48:29 2008
New Revision: 728168
URL: http://svn.apache.org/viewvc?rev=728168&view=rev
Log:
intial commit (second solution)
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/IOrderProcessor.cs
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/OrderProcessorContract.csproj
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/Properties/
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/Properties/AssemblyInfo.cs
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/stocktrader.snk
(with props)
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/IOrderProcessor.cs
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/IOrderProcessor.cs?rev=728168&view=auto
==============================================================================
---
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/IOrderProcessor.cs
(added)
+++
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/IOrderProcessor.cs
Fri Dec 19 13:48:29 2008
@@ -0,0 +1,49 @@
+// .Net StockTrader Sample WCF Application for Benchmarking, Performance
Analysis and Design Considerations for Service-Oriented Applications
+
+//======================================================================================================
+// The OrderProcessor ServiceContract, which is quite simple.
+//======================================================================================================
+//======================================================================================================
+// 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.ServiceModel;
+using System.ServiceModel.Description;
+using System.ServiceModel.Dispatcher;
+using System.ServiceModel.Channels;
+using System.Threading;
+using Trade.BusinessServiceDataContract;
+
+namespace Trade.OrderProcessorContract
+{
+ /// <summary>
+ /// This is the service contract for the Order Processor Service. It
defines the service layer operations
+ /// that are separately implemented in the implementation class.
+ /// </summary>
+ [ServiceContract(Name = "OrderProcessorService", Namespace =
"http://Trade.TraderOrderHost")]
+ public interface IOrderProcessor
+ {
+ //IsOneWay Marks Methods as Asynchrounous.
+ //This is our non-transacted method for async calls via http, tcp, and
volatile (in-process) msmq.
+ [OperationContract(Action = "SubmitOrder", IsOneWay = true)]
+ void SubmitOrder(OrderDataModel order);
+
+ /// <summary>
+ /// Online check method.
+ /// </summary>
+ [OperationContract(Action = "isOnline", IsOneWay = true)]
+ void isOnline();
+ }
+}
+
Added:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/OrderProcessorContract.csproj
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/OrderProcessorContract.csproj?rev=728168&view=auto
==============================================================================
---
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/OrderProcessorContract.csproj
(added)
+++
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/OrderProcessorContract.csproj
Fri Dec 19 13:48:29 2008
@@ -0,0 +1,87 @@
+<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>{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Trade.OrderProcessorContract</RootNamespace>
+ <AssemblyName>Trade.OrderProcessorContract</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.Messaging" />
+ <Reference Include="System.Runtime.Serialization, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Windows\Microsoft.NET\Framework\v3.0\Windows
Communication Foundation\System.Runtime.Serialization.dll</HintPath>
+ </Reference>
+ <Reference Include="System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Windows\Microsoft.NET\Framework\v3.0\Windows
Communication Foundation\System.ServiceModel.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Transactions" />
+ <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="IOrderProcessor.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/OrderProcessorContract/Properties/AssemblyInfo.cs
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/Properties/AssemblyInfo.cs?rev=728168&view=auto
==============================================================================
---
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/Properties/AssemblyInfo.cs
(added)
+++
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/Properties/AssemblyInfo.cs
Fri Dec 19 13:48:29 2008
@@ -0,0 +1,35 @@
+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.OrderProcessorContract")]
+[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("06b76763-01ac-4c13-83bc-c7b14175c905")]
+
+// 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/OrderProcessorContract/stocktrader.snk
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/stocktrader.snk?rev=728168&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
incubator/stonehenge/contrib/stocktrader/dotnet/StockTrader/OrderProcessorContract/stocktrader.snk
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream