Permalink
Browse files

refactor CHessianMethodCaller, create a common abstract class for Asy…

…ncMethodCaller (for Silverlight) and MethodCaller (for .NET)
  • Loading branch information...
1 parent 392dcb2 commit 164cedf157eab2653077a889b9d711f85d4a9299 @timfel committed Dec 10, 2011
View
@@ -121,6 +121,7 @@
<Compile Include="burlapcsharp\io\CBurlapException.cs" />
<Compile Include="burlapcsharp\io\CBurlapInput.cs" />
<Compile Include="burlapcsharp\io\CBurlapOutput.cs" />
+ <Compile Include="hessiancsharp\client\AbstractCHessianMethodCaller.cs" />
<Compile Include="hessiancsharp\client\CHessianLog.cs" />
<Compile Include="hessiancsharp\client\CHessianMethodCaller.cs">
<SubType>Code</SubType>
View
@@ -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("SilverHessian")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("HPI")]
+[assembly: AssemblyProduct("SilverHessian")]
+[assembly: AssemblyCopyright("Copyright © HPI 2011")]
+[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("82171dab-fde2-4222-a9a8-25b14070c4cf")]
+
+// 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("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A56BE294-6746-4B87-BCDF-9BDC685A8D5C}</ProjectGuid>
+ <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>SilverHessian</RootNamespace>
+ <AssemblyName>SilverHessian</AssemblyName>
+ <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
+ <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
+ <SilverlightApplication>false</SilverlightApplication>
+ <ValidateXaml>true</ValidateXaml>
+ <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
+ </PropertyGroup>
+ <!-- This property group is only here to support building this project using the
+ MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
+ to set the TargetFrameworkVersion to v3.5 -->
+ <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
+ <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>TRACE;DEBUG;SILVERLIGHT,COMPACT_FRAMEWORK</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <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;SILVERLIGHT</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="mscorlib" />
+ <Reference Include="System.Windows" />
+ <Reference Include="system" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Net" />
+ <Reference Include="System.Windows.Browser" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AssemblyInfo.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\client\CHessianLog.cs" />
+ <Compile Include="hessiancsharp\client\CHessianProxyFactory.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\client\CAsyncHessianMethodCaller.cs" />
+ <Compile Include="hessiancsharp\client\AbstractCHessianMethodCaller.cs" />
+ <Compile Include="hessiancsharp\io\AbstractDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\AbstractHessianInput.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\AbstractHessianOutput.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\AbstractSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CArrayDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CArraySerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CBasicDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CBasicSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CCollectionDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CCollectionSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CDateDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CDateSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CDecimalDeserializer.cs" />
+ <Compile Include="hessiancsharp\io\CEnumDeserializer.cs" />
+ <Compile Include="hessiancsharp\io\CEnumSerializer.cs" />
+ <Compile Include="hessiancsharp\io\CExceptionDeserializer.cs" />
+ <Compile Include="hessiancsharp\io\CExceptionSerializer.cs" />
+ <Compile Include="hessiancsharp\io\CHessianException.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CHessianInput.cs" />
+ <Compile Include="hessiancsharp\io\CHessianOutput.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CHessianProtocolConstants.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CInputStreamSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CMapDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CMapSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CObjectDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CObjectSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CSerializationConstants.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CSerializerFactory.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CStringValueDeserializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\io\CStringValueSerializer.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="hessiancsharp\util\JavaUtcConverter.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
+ <SilverlightProjectProperties />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- 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>
+ -->
+</Project>
View
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
+ <SilverlightProjectProperties>
+ <StartPageUrl>
+ </StartPageUrl>
+ <StartAction>DynamicPage</StartAction>
+ <AspNetDebugging>True</AspNetDebugging>
+ <NativeDebugging>False</NativeDebugging>
+ <SQLDebugging>False</SQLDebugging>
+ <ExternalProgram>
+ </ExternalProgram>
+ <StartExternalURL>
+ </StartExternalURL>
+ <StartCmdLineArguments>
+ </StartCmdLineArguments>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <ShowWebRefOnDebugPrompt>True</ShowWebRefOnDebugPrompt>
+ <OutOfBrowserProjectToDebug>
+ </OutOfBrowserProjectToDebug>
+ <ShowRiaSvcsOnDebugPrompt>True</ShowRiaSvcsOnDebugPrompt>
+ </SilverlightProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
View
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverHessian", "SilverHessian.csproj", "{A56BE294-6746-4B87-BCDF-9BDC685A8D5C}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A56BE294-6746-4B87-BCDF-9BDC685A8D5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A56BE294-6746-4B87-BCDF-9BDC685A8D5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A56BE294-6746-4B87-BCDF-9BDC685A8D5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A56BE294-6746-4B87-BCDF-9BDC685A8D5C}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Oops, something went wrong.

0 comments on commit 164cedf

Please sign in to comment.