diff --git a/examples/Spring/Spring.WcfQuickStart/Spring.WcfQuickStart.2008.sln b/examples/Spring/Spring.WcfQuickStart/Spring.WcfQuickStart.2008.sln index 7ae62e54..69acd826 100644 --- a/examples/Spring/Spring.WcfQuickStart/Spring.WcfQuickStart.2008.sln +++ b/examples/Spring/Spring.WcfQuickStart/Spring.WcfQuickStart.2008.sln @@ -10,6 +10,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.WcfQuickStart.Server EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.WcfQuickStart.ServerWeb.2008", "src\Spring.WcfQuickStart.ServerWeb\Spring.WcfQuickStart.ServerWeb.2008.csproj", "{EEC5B531-104B-44E6-975B-44C0C8973405}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.WcfQuickStart.Contracts", "src\Spring.WcfQuickStart.Contracts\Spring.WcfQuickStart.Contracts.csproj", "{53263837-0643-45FE-96A2-46D425E1A36F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.WcfQuickStart.Aspects", "src\Spring.WcfQuickStart.Aspects\Spring.WcfQuickStart.Aspects.csproj", "{B52BBAA3-1B30-4905-827C-1D81EBA56A15}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|.NET = Debug|.NET @@ -50,6 +54,26 @@ Global {EEC5B531-104B-44E6-975B-44C0C8973405}.Release|Any CPU.Build.0 = Release|Any CPU {EEC5B531-104B-44E6-975B-44C0C8973405}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {EEC5B531-104B-44E6-975B-44C0C8973405}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Debug|.NET.ActiveCfg = Debug|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Release|.NET.ActiveCfg = Release|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Release|Any CPU.Build.0 = Release|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {53263837-0643-45FE-96A2-46D425E1A36F}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Debug|.NET.ActiveCfg = Debug|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Release|.NET.ActiveCfg = Release|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Release|Any CPU.Build.0 = Release|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {B52BBAA3-1B30-4905-827C-1D81EBA56A15}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/Properties/AssemblyInfo.cs b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..85f91a08 --- /dev/null +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +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("Spring.WcfQuickStart.Aspects")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Spring.WcfQuickStart.Aspects")] +[assembly: AssemblyCopyright("Copyright © 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("24dd4f90-8ade-4961-b2d2-b799b12ca5cc")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/SimplePerformanceInterceptor.cs b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/SimplePerformanceInterceptor.cs similarity index 92% rename from examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/SimplePerformanceInterceptor.cs rename to examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/SimplePerformanceInterceptor.cs index 4ff597e0..b0ec6717 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/SimplePerformanceInterceptor.cs +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/SimplePerformanceInterceptor.cs @@ -1,6 +1,4 @@ using System; -using System.Reflection; - using AopAlliance.Intercept; namespace Spring.WcfQuickStart diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/Spring.WcfQuickStart.Aspects.csproj b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/Spring.WcfQuickStart.Aspects.csproj new file mode 100644 index 00000000..3f369821 --- /dev/null +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.Aspects/Spring.WcfQuickStart.Aspects.csproj @@ -0,0 +1,66 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {B52BBAA3-1B30-4905-827C-1D81EBA56A15} + Library + Properties + Spring.WcfQuickStart + Spring.WcfQuickStart.Aspects + v3.0 + 512 + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\..\..\..\..\bin\net\2.0\debug\Spring.Aop.dll + + + False + ..\..\..\..\..\bin\net\2.0\debug\Spring.Core.dll + + + + 3.5 + + + 3.5 + + + + + + + + + + + \ No newline at end of file diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/App.config b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/App.config index 9e3d7997..dc2e1734 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/App.config +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/App.config @@ -1,10 +1,10 @@ - +
-
+
@@ -12,10 +12,10 @@ - + - + @@ -24,34 +24,21 @@ - - + + - - + + - - + + - \ No newline at end of file + diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerApp.xml b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerApp.xml index 97ddbed5..2e9c6ddc 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerApp.xml +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerApp.xml @@ -3,7 +3,7 @@ diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerWeb.xml b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerWeb.xml index e3870c5a..432d913c 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerWeb.xml +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Config/ServerWeb.xml @@ -3,7 +3,7 @@ diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/ICalculator.cs b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/ICalculator.cs deleted file mode 100644 index f2909aa0..00000000 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/ICalculator.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.ServiceModel; - -namespace Spring.WcfQuickStart -{ - [ServiceContract(Namespace = "http://Spring.WcfQuickStart")] - public interface ICalculator - { - [OperationContract] - double Add(double n1, double n2); - [OperationContract] - double Subtract(double n1, double n2); - [OperationContract] - double Multiply(double n1, double n2); - [OperationContract] - double Divide(double n1, double n2); - [OperationContract] - string GetName(); - } -} diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Program.cs b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Program.cs index 88aa59da..c871ae38 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Program.cs +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Program.cs @@ -50,6 +50,7 @@ namespace Spring.WcfQuickStart.ClientApp Console.WriteLine("Divide(11, 2) : " + calculator.Divide(11, 2)); Console.WriteLine("Multiply(2, 5) : " + calculator.Multiply(2, 5)); Console.WriteLine("Subtract(7, 4) : " + calculator.Subtract(7, 4)); + Console.WriteLine("Power(2, 8) : " + calculator.Power(new BinaryOperationArgs(2,8)).Result); Console.WriteLine(); } catch (Exception e) diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.ClientApp.2008.csproj b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.ClientApp.2008.csproj index 195b4629..f4abca09 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.ClientApp.2008.csproj +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.ClientApp.2008.csproj @@ -14,7 +14,7 @@ 2.0 - v3.5 + v3.0 http://localhost/Spring.WcfQuickStart.ClientApp/ true Web @@ -30,6 +30,8 @@ true false true + + true @@ -59,15 +61,11 @@ ..\..\..\..\..\bin\net\3.0\debug\Spring.Services.dll - - 3.5 - - @@ -97,6 +95,12 @@ + + + {53263837-0643-45FE-96A2-46D425E1A36F} + Spring.WcfQuickStart.Contracts + + + \ No newline at end of file diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/App.config b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/App.config index cf613534..bd4c8033 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/App.config +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/App.config @@ -18,9 +18,9 @@ - + + + @@ -41,7 +41,7 @@ - + diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/CalculatorService.cs b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/CalculatorService.cs index 2d68aeff..368db3e7 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/CalculatorService.cs +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/CalculatorService.cs @@ -1,50 +1,12 @@ -using System; using System.Threading; -//using System.ServiceModel; namespace Spring.WcfQuickStart { - //[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)] - public class CalculatorService : ICalculator + public class CalculatorService : AbstractCalculatorService { - private int sleepInSeconds; - - public int SleepInSeconds + public override string GetName() { - get { return sleepInSeconds; } - set { sleepInSeconds = value; } - } - - public double Add(double n1, double n2) - { - Thread.Sleep(sleepInSeconds*1000); - return n1 + n2; - } - - public double Subtract(double n1, double n2) - { - Thread.Sleep(sleepInSeconds * 1000); - return n1 - n2; - - } - - public double Multiply(double n1, double n2) - { - Thread.Sleep(sleepInSeconds * 1000); - return n1 * n2; - - } - - public double Divide(double n1, double n2) - { - Thread.Sleep(sleepInSeconds * 1000); - return n1 / n2; - - } - - public string GetName() - { - Thread.Sleep(sleepInSeconds * 1000); + Thread.Sleep(SleepInSeconds * 1000); return "ServerApp Calculator"; } } diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/ICalculator.cs b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/ICalculator.cs deleted file mode 100644 index f2909aa0..00000000 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/ICalculator.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.ServiceModel; - -namespace Spring.WcfQuickStart -{ - [ServiceContract(Namespace = "http://Spring.WcfQuickStart")] - public interface ICalculator - { - [OperationContract] - double Add(double n1, double n2); - [OperationContract] - double Subtract(double n1, double n2); - [OperationContract] - double Multiply(double n1, double n2); - [OperationContract] - double Divide(double n1, double n2); - [OperationContract] - string GetName(); - } -} diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Properties/AssemblyInfo.cs b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Properties/AssemblyInfo.cs index 3d39597a..29b8dba8 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Properties/AssemblyInfo.cs +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Spring.WcfQuickStart.ServerApp")] -[assembly: AssemblyCopyright("Copyright © 2007")] +[assembly: AssemblyCopyright("Copyright © 2008 The Spring for .NET Framework Team")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Spring.WcfQuickStart.ServerApp.2008.csproj b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Spring.WcfQuickStart.ServerApp.2008.csproj index 034bccac..1a88ca0c 100644 --- a/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Spring.WcfQuickStart.ServerApp.2008.csproj +++ b/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ServerApp/Spring.WcfQuickStart.ServerApp.2008.csproj @@ -69,10 +69,8 @@ - - @@ -94,6 +92,16 @@ false + + + {B52BBAA3-1B30-4905-827C-1D81EBA56A15} + Spring.WcfQuickStart.Aspects + + + {53263837-0643-45FE-96A2-46D425E1A36F} + Spring.WcfQuickStart.Contracts + +