init
This commit is contained in:
1
Common/DTS.Common.ServiceLibrary/.svn/entries
Normal file
1
Common/DTS.Common.ServiceLibrary/.svn/entries
Normal file
@@ -0,0 +1 @@
|
||||
12
|
||||
1
Common/DTS.Common.ServiceLibrary/.svn/format
Normal file
1
Common/DTS.Common.ServiceLibrary/.svn/format
Normal file
@@ -0,0 +1 @@
|
||||
12
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
|
||||
namespace DTS.Common.ServiceLibrary
|
||||
{
|
||||
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together.
|
||||
public class ServiceLibrary : IServiceLibrary
|
||||
{
|
||||
public string GetData(int value)
|
||||
{
|
||||
return string.Format("You entered: {0}", value);
|
||||
}
|
||||
|
||||
public CompositeType GetDataUsingDataContract(CompositeType composite)
|
||||
{
|
||||
if (composite == null)
|
||||
{
|
||||
throw new ArgumentNullException("composite");
|
||||
}
|
||||
if (composite.BoolValue)
|
||||
{
|
||||
composite.StringValue += "Suffix";
|
||||
}
|
||||
return composite;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{3D9AD99F-2412-4246-B90B-4EAA41C64699}">
|
||||
<WcfProjectProperties>
|
||||
<PublishCopyOption>RunFiles</PublishCopyOption>
|
||||
<PublishTargetLocation>
|
||||
</PublishTargetLocation>
|
||||
<PublishDeleteAllFiles>False</PublishDeleteAllFiles>
|
||||
</WcfProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
@@ -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("DTS.Common.ServiceLibrary")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("DTS.Common.ServiceLibrary")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[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("b11b86b6-ad71-49b5-903a-ff912cb9928d")]
|
||||
|
||||
// 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 Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
|
||||
<appSettings>
|
||||
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/>
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true"/>
|
||||
</system.web>
|
||||
<!-- When deploying the service library project, the content of the config file must be added to the host's
|
||||
app.config file. System.Configuration does not support config files for libraries. -->
|
||||
<system.serviceModel>
|
||||
<services>
|
||||
<service name="DTS.Common.ServiceLibrary.ServiceLibrary">
|
||||
<endpoint address="" binding="basicHttpBinding" contract="DTS.Common.ServiceLibrary.IServiceLibrary">
|
||||
<identity>
|
||||
<dns value="localhost"/>
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8733/Design_Time_Addresses/DTS.Common.ServiceLibrary/Service1/"/>
|
||||
</baseAddresses>
|
||||
</host>
|
||||
</service>
|
||||
</services>
|
||||
<behaviors>
|
||||
<serviceBehaviors>
|
||||
<behavior>
|
||||
<!-- To avoid disclosing metadata information,
|
||||
set the values below to false before deployment -->
|
||||
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
|
||||
<!-- To receive exception details in faults for debugging purposes,
|
||||
set the value below to true. Set to false before deployment
|
||||
to avoid disclosing exception information -->
|
||||
<serviceDebug includeExceptionDetailInFaults="False"/>
|
||||
</behavior>
|
||||
</serviceBehaviors>
|
||||
</behaviors>
|
||||
</system.serviceModel>
|
||||
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup></configuration>
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
|
||||
namespace DTS.Common.ServiceLibrary
|
||||
{
|
||||
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
|
||||
[ServiceContract]
|
||||
public interface IServiceLibrary
|
||||
{
|
||||
[OperationContract]
|
||||
string GetData(int value);
|
||||
|
||||
[OperationContract]
|
||||
CompositeType GetDataUsingDataContract(CompositeType composite);
|
||||
|
||||
// TODO: Add your service operations here
|
||||
}
|
||||
|
||||
// Use a data contract as illustrated in the sample below to add composite types to service operations.
|
||||
// You can add XSD files into the project. After building the project, you can directly use the data types defined there, with the namespace "DTS.Common.ServiceLibrary.ContractType".
|
||||
[DataContract]
|
||||
public class CompositeType
|
||||
{
|
||||
bool boolValue = true;
|
||||
string stringValue = "Hello ";
|
||||
|
||||
[DataMember]
|
||||
public bool BoolValue
|
||||
{
|
||||
get { return boolValue; }
|
||||
set { boolValue = value; }
|
||||
}
|
||||
|
||||
[DataMember]
|
||||
public string StringValue
|
||||
{
|
||||
get { return stringValue; }
|
||||
set { stringValue = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9DF8847B-73BA-4D1E-8FA6-F490384D6FD9}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>DTS.Common.ServiceLibrary</RootNamespace>
|
||||
<AssemblyName>DTS.Common.ServiceLibrary</AssemblyName>
|
||||
<ProjectTypeGuids>{3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<StartArguments>/client:"WcfTestClient.exe"</StartArguments>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<WcfConfigValidationEnabled>True</WcfConfigValidationEnabled>
|
||||
<XsdCodeGenEnabled>True</XsdCodeGenEnabled>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="IServiceLibrary.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ServiceLibrary.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == '' and '$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' != '11.0'">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio</VSToolsPath>
|
||||
<WcfServiceModelTargetPath>$(VSToolsPath)\WCF</WcfServiceModelTargetPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(WcfServiceModelTargetPath)\Microsoft.VisualStudio.ServiceModel.targets" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{3D9AD99F-2412-4246-B90B-4EAA41C64699}">
|
||||
<WcfProjectProperties>
|
||||
<AutoStart>True</AutoStart>
|
||||
</WcfProjectProperties>
|
||||
</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>
|
||||
BIN
Common/DTS.Common.ServiceLibrary/.svn/wc.db
Normal file
BIN
Common/DTS.Common.ServiceLibrary/.svn/wc.db
Normal file
Binary file not shown.
0
Common/DTS.Common.ServiceLibrary/.svn/wc.db-journal
Normal file
0
Common/DTS.Common.ServiceLibrary/.svn/wc.db-journal
Normal file
43
Common/DTS.Common.ServiceLibrary/App.config
Normal file
43
Common/DTS.Common.ServiceLibrary/App.config
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
|
||||
<appSettings>
|
||||
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/>
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true"/>
|
||||
</system.web>
|
||||
<!-- When deploying the service library project, the content of the config file must be added to the host's
|
||||
app.config file. System.Configuration does not support config files for libraries. -->
|
||||
<system.serviceModel>
|
||||
<services>
|
||||
<service name="DTS.Common.ServiceLibrary.ServiceLibrary">
|
||||
<endpoint address="" binding="basicHttpBinding" contract="DTS.Common.ServiceLibrary.IServiceLibrary">
|
||||
<identity>
|
||||
<dns value="localhost"/>
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8733/Design_Time_Addresses/DTS.Common.ServiceLibrary/Service1/"/>
|
||||
</baseAddresses>
|
||||
</host>
|
||||
</service>
|
||||
</services>
|
||||
<behaviors>
|
||||
<serviceBehaviors>
|
||||
<behavior>
|
||||
<!-- To avoid disclosing metadata information,
|
||||
set the values below to false before deployment -->
|
||||
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
|
||||
<!-- To receive exception details in faults for debugging purposes,
|
||||
set the value below to true. Set to false before deployment
|
||||
to avoid disclosing exception information -->
|
||||
<serviceDebug includeExceptionDetailInFaults="False"/>
|
||||
</behavior>
|
||||
</serviceBehaviors>
|
||||
</behaviors>
|
||||
</system.serviceModel>
|
||||
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup></configuration>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9DF8847B-73BA-4D1E-8FA6-F490384D6FD9}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>DTS.Common.ServiceLibrary</RootNamespace>
|
||||
<AssemblyName>DTS.Common.ServiceLibrary</AssemblyName>
|
||||
<ProjectTypeGuids>{3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<StartArguments>/client:"WcfTestClient.exe"</StartArguments>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<WcfConfigValidationEnabled>True</WcfConfigValidationEnabled>
|
||||
<XsdCodeGenEnabled>True</XsdCodeGenEnabled>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="IServiceLibrary.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ServiceLibrary.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == '' and '$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' != '11.0'">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio</VSToolsPath>
|
||||
<WcfServiceModelTargetPath>$(VSToolsPath)\WCF</WcfServiceModelTargetPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(WcfServiceModelTargetPath)\Microsoft.VisualStudio.ServiceModel.targets" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{3D9AD99F-2412-4246-B90B-4EAA41C64699}">
|
||||
<WcfProjectProperties>
|
||||
<AutoStart>True</AutoStart>
|
||||
</WcfProjectProperties>
|
||||
</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>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{3D9AD99F-2412-4246-B90B-4EAA41C64699}">
|
||||
<WcfProjectProperties>
|
||||
<PublishCopyOption>RunFiles</PublishCopyOption>
|
||||
<PublishTargetLocation>
|
||||
</PublishTargetLocation>
|
||||
<PublishDeleteAllFiles>False</PublishDeleteAllFiles>
|
||||
</WcfProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
45
Common/DTS.Common.ServiceLibrary/IServiceLibrary.cs
Normal file
45
Common/DTS.Common.ServiceLibrary/IServiceLibrary.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
|
||||
namespace DTS.Common.ServiceLibrary
|
||||
{
|
||||
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
|
||||
[ServiceContract]
|
||||
public interface IServiceLibrary
|
||||
{
|
||||
[OperationContract]
|
||||
string GetData(int value);
|
||||
|
||||
[OperationContract]
|
||||
CompositeType GetDataUsingDataContract(CompositeType composite);
|
||||
|
||||
// TODO: Add your service operations here
|
||||
}
|
||||
|
||||
// Use a data contract as illustrated in the sample below to add composite types to service operations.
|
||||
// You can add XSD files into the project. After building the project, you can directly use the data types defined there, with the namespace "DTS.Common.ServiceLibrary.ContractType".
|
||||
[DataContract]
|
||||
public class CompositeType
|
||||
{
|
||||
bool boolValue = true;
|
||||
string stringValue = "Hello ";
|
||||
|
||||
[DataMember]
|
||||
public bool BoolValue
|
||||
{
|
||||
get { return boolValue; }
|
||||
set { boolValue = value; }
|
||||
}
|
||||
|
||||
[DataMember]
|
||||
public string StringValue
|
||||
{
|
||||
get { return stringValue; }
|
||||
set { stringValue = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Common/DTS.Common.ServiceLibrary/Properties/AssemblyInfo.cs
Normal file
36
Common/DTS.Common.ServiceLibrary/Properties/AssemblyInfo.cs
Normal file
@@ -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("DTS.Common.ServiceLibrary")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("DTS.Common.ServiceLibrary")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[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("b11b86b6-ad71-49b5-903a-ff912cb9928d")]
|
||||
|
||||
// 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 Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
31
Common/DTS.Common.ServiceLibrary/ServiceLibrary.cs
Normal file
31
Common/DTS.Common.ServiceLibrary/ServiceLibrary.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
|
||||
namespace DTS.Common.ServiceLibrary
|
||||
{
|
||||
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together.
|
||||
public class ServiceLibrary : IServiceLibrary
|
||||
{
|
||||
public string GetData(int value)
|
||||
{
|
||||
return string.Format("You entered: {0}", value);
|
||||
}
|
||||
|
||||
public CompositeType GetDataUsingDataContract(CompositeType composite)
|
||||
{
|
||||
if (composite == null)
|
||||
{
|
||||
throw new ArgumentNullException("composite");
|
||||
}
|
||||
if (composite.BoolValue)
|
||||
{
|
||||
composite.StringValue += "Suffix";
|
||||
}
|
||||
return composite;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user