diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Client20.csproj b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Client20.csproj deleted file mode 100644 index cfba4a731f2..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Client20.csproj +++ /dev/null @@ -1,59 +0,0 @@ - - - - Debug - x86 - 10.0.20815 - 2.0 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B} - Exe - Properties - Client20 - Client20 - v2.0 - 512 - x86 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - {DC79E2EA-6993-46E7-BEE8-79158E164042} - ServerInvoker - - - {691CDE7E-110B-4145-AEE1-7912243950F3} - SharedCode - - - - - \ No newline at end of file diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Program.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Program.cs deleted file mode 100644 index 2d7bd307e3e..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Program.cs +++ /dev/null @@ -1,39 +0,0 @@ -//----------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All Rights Reserved. -//----------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using Microsoft.Samples.SBGenericsVTS.Invoker; -using Microsoft.Samples.SBGenericsVTS.SharedCode; - -namespace Microsoft.Samples.SBGenericsVTS.Client20 -{ - public class Program - { - static void Main(string[] args) - { - // First call - ServerInvoker.Invoke("tcp://127.0.0.1:1243/ListCustomerObject.rem", new List(new Customer[] { new Customer("John", 23), new Customer("Mary", 45) })); - - // Second call - ServerInvoker.Invoke("tcp://127.0.0.1:1243/ListStringObject.rem", new List(new string[] { "one", "two", "three" })); - - // Third call - List> listListInt = new List>(); - listListInt.Add(new List(new int[] { 1, 2 })); - listListInt.Add(new List(new int[] { 3, 4 })); - ServerInvoker.Invoke>("tcp://127.0.0.1:1243/ListListIntObject.rem", listListInt); - - // Fourth call - List listArrayInt = new List(); - listArrayInt.Add(new int[] { 5, 6 }); - listArrayInt.Add(new int[] { 7, 8 }); - ServerInvoker.Invoke("tcp://127.0.0.1:1243/ListArrayIntObject.rem", listArrayInt); - - Console.WriteLine(); - Console.WriteLine("Press to terminate client."); - Console.ReadLine(); - } - } -} diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Properties/AssemblyInfo.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Properties/AssemblyInfo.cs deleted file mode 100644 index efab081a5d5..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client20/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -//---------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//---------------------------------------------------------------- - -using System; -using System.Reflection; -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: ComVisible(false)] -[assembly: CLSCompliant(true)] -[assembly: AssemblyTitle("Client20")] -[assembly: AssemblyDescription("SBGenericsVTS sample")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft Corporation")] -[assembly: AssemblyProduct("Windows Communication Foundation and Windows Workflow Foundation SDK")] -[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 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.*")] diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Client40.csproj b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Client40.csproj deleted file mode 100644 index 5519b340a01..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Client40.csproj +++ /dev/null @@ -1,60 +0,0 @@ - - - - Debug - x86 - 10.0.20815 - 2.0 - {984458B7-052A-4908-A445-78A691427FC2} - Exe - Properties - Client40 - Client40 - v4.0 - Client - 512 - x86 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - {DC79E2EA-6993-46E7-BEE8-79158E164042} - ServerInvoker - - - {691CDE7E-110B-4145-AEE1-7912243950F3} - SharedCode - - - - - \ No newline at end of file diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Program.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Program.cs deleted file mode 100644 index 8522bcaa731..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Program.cs +++ /dev/null @@ -1,39 +0,0 @@ -//----------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All Rights Reserved. -//----------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using Microsoft.Samples.SBGenericsVTS.Invoker; -using Microsoft.Samples.SBGenericsVTS.SharedCode; - -namespace Microsoft.Samples.SBGenericsVTS.Client40 -{ - public class Program - { - static void Main(string[] args) - { - // First call - ServerInvoker.Invoke("tcp://127.0.0.1:1243/ListCustomerObject.rem", new List(new Customer[] { new Customer("John", 23), new Customer("Mary", 45) })); - - // Second call - ServerInvoker.Invoke("tcp://127.0.0.1:1243/ListStringObject.rem", new List(new string[] { "one", "two", "three" })); - - // Third call - List> listListInt = new List>(); - listListInt.Add(new List(new int[] { 1, 2 })); - listListInt.Add(new List(new int[] { 3, 4 })); - ServerInvoker.Invoke>("tcp://127.0.0.1:1243/ListListIntObject.rem", listListInt); - - // Fourth call - List listArrayInt = new List(); - listArrayInt.Add(new int[] { 5, 6 }); - listArrayInt.Add(new int[] { 7, 8 }); - ServerInvoker.Invoke("tcp://127.0.0.1:1243/ListArrayIntObject.rem", listArrayInt); - - Console.WriteLine(); - Console.WriteLine("Press to terminate client."); - Console.ReadLine(); - } - } -} diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Properties/AssemblyInfo.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Properties/AssemblyInfo.cs deleted file mode 100644 index 1b56bb6b1f2..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Client40/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -//---------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//---------------------------------------------------------------- - -using System; -using System.Reflection; -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: ComVisible(false)] -[assembly: CLSCompliant(true)] -[assembly: AssemblyTitle("Client40")] -[assembly: AssemblyDescription("SBGenericsVTS sample")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft Corporation")] -[assembly: AssemblyProduct("Windows Communication Foundation and Windows Workflow Foundation SDK")] -[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 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.*")] diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/GenericsVTSSBSinkProvider.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/GenericsVTSSBSinkProvider.cs deleted file mode 100644 index 828479935a7..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/GenericsVTSSBSinkProvider.cs +++ /dev/null @@ -1,177 +0,0 @@ - -//----------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All Rights Reserved. -//----------------------------------------------------------------- - -using System; -using System.Collections; -using System.IO; -using System.Reflection; -using System.Runtime.Remoting.Channels; -using System.Runtime.Remoting.Messaging; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.Text; - -namespace Microsoft.Samples.SBGenericsVTS.GenericsVTSSerializationBinder -{ - - public class GenericsVTSSBSinkProvider : IServerChannelSinkProvider - { - IServerChannelSinkProvider next; - - IServerChannelSink IServerChannelSinkProvider.CreateSink(IChannelReceiver channel) - { - return new GenericsVTSSBSink(next.CreateSink(channel)); - } - - void IServerChannelSinkProvider.GetChannelData(IChannelDataStore channelData) - { - if (next != null) - { - next.GetChannelData(channelData); - } - } - - IServerChannelSinkProvider IServerChannelSinkProvider.Next - { - get - { - return next; - } - set - { - next = value; - } - } - - class GenericsVTSSBSink : IServerChannelSink - { - IServerChannelSink next; - - public GenericsVTSSBSink(IServerChannelSink channel) - { - next = channel; - } - - void IServerChannelSink.AsyncProcessResponse(IServerResponseChannelSinkStack sinkStack, object state, IMessage msg, ITransportHeaders headers, Stream stream) - { - sinkStack.AsyncProcessResponse(msg, headers, stream); - } - - ServerProcessing IServerChannelSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream) - { - BinaryFormatter binaryFormatter = new BinaryFormatter(); - binaryFormatter.Binder = new GenericsVTSSerializationBinder(); - requestMsg = (IMessage)binaryFormatter.Deserialize(requestStream); - requestMsg.Properties["__Uri"] = requestHeaders["__RequestUri"]; - - next.ProcessMessage(sinkStack, requestMsg, null, null, out responseMsg, out responseHeaders, out responseStream); - - responseHeaders = new TransportHeaders(); - responseStream = new MemoryStream(); - binaryFormatter.Serialize(responseStream, responseMsg); - responseStream.Position = 0; - - return ServerProcessing.Complete; - } - - Stream IServerChannelSink.GetResponseStream(IServerResponseChannelSinkStack sinkStack, object state, IMessage msg, ITransportHeaders headers) - { - return next.GetResponseStream(sinkStack, state, msg, headers); - } - - IServerChannelSink IServerChannelSink.NextChannelSink - { - get { return next; } - } - - IDictionary IChannelSinkBase.Properties - { - get { return next.Properties; } - } - } - - class GenericsVTSSerializationBinder : SerializationBinder - { - string[] frameworkPublicKeyTokens = new string[] { - "B7-7A-5C-56-19-34-E0-89", - "B0-3F-5F-7F-11-D5-0A-3A", - "31-BF-38-56-AD-36-4E-35", - "89-84-5D-CD-80-80-CC-91" - }; - - bool IsFrameworkAssembly(Assembly assembly) - { - foreach (string frameworkToken in frameworkPublicKeyTokens) - { - if (frameworkToken == BitConverter.ToString(assembly.GetName().GetPublicKeyToken())) - { - return true; - } - } - return false; - } - - public override void BindToName(Type serializedType, out string assemblyName, out string typeName) - { - // To handle arrays - if (serializedType.IsArray) - { - string elementTypeName; - Type elementType = serializedType.GetElementType(); - BindToName(elementType, out assemblyName, out elementTypeName); - StringBuilder typeNameBuilder = new StringBuilder(elementTypeName); - typeNameBuilder.Append("["); - int arrayRank = serializedType.GetArrayRank(); - for (int i = 1; i < arrayRank; i++) - { - typeNameBuilder.Append(","); - } - if (arrayRank == 1 && serializedType == elementType.MakeArrayType(1)) - { - typeNameBuilder.Append("*"); - } - typeNameBuilder.Append("]"); - typeName = typeNameBuilder.ToString(); - } - // To handle generic types - else if (serializedType.IsGenericType && !serializedType.IsGenericTypeDefinition) - { - string definitionTypeName; - Type[] genericParameters = serializedType.GetGenericArguments(); - BindToName(serializedType.GetGenericTypeDefinition(), out assemblyName, out definitionTypeName); - StringBuilder typeNameBuilder = new StringBuilder(definitionTypeName); - typeNameBuilder.Append("["); - for (int i = 0; i < genericParameters.Length; i++) - { - if (i > 0) - { - typeNameBuilder.Append(","); - } - string parameterTypeName, parameterAssemblyName; - BindToName(genericParameters[i], out parameterAssemblyName, out parameterTypeName); - typeNameBuilder.AppendFormat("[{0}, {1}]", parameterTypeName, parameterAssemblyName); - } - typeNameBuilder.Append("]"); - typeName = typeNameBuilder.ToString(); - } - // To handle the rest of types - else - { - assemblyName = serializedType.Assembly.FullName; - if (IsFrameworkAssembly(serializedType.Assembly)) - { - assemblyName = assemblyName.Replace("Version=4.0.0.0", "Version=2.0.0.0"); - } - typeName = serializedType.FullName; - } - } - - public override Type BindToType(string assemblyName, string typeName) - { - return null; - } - } - } -} diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/GenericsVTSSerializationBinder.csproj b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/GenericsVTSSerializationBinder.csproj deleted file mode 100644 index 90c29c65eb1..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/GenericsVTSSerializationBinder.csproj +++ /dev/null @@ -1,49 +0,0 @@ - - - - Debug - x86 - 10.0.20815 - 2.0 - {B02C9660-5D43-450C-9865-0C004CFBC63F} - Library - Properties - SerializationBinder - SerializationBinder - v4.0 - 512 - x86 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - \ No newline at end of file diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/Properties/AssemblyInfo.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/Properties/AssemblyInfo.cs deleted file mode 100644 index 126048c057e..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/GenericsVTSSerializationBinder/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -//---------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//---------------------------------------------------------------- - -using System; -using System.Reflection; -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: ComVisible(false)] -[assembly: CLSCompliant(true)] -[assembly: AssemblyTitle("GenericsVTSSerializationBinder")] -[assembly: AssemblyDescription("SBGenericsVTS sample")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft Corporation")] -[assembly: AssemblyProduct("Windows Communication Foundation and Windows Workflow Foundation SDK")] -[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 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.*")] diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/Properties/AssemblyInfo.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/Properties/AssemblyInfo.cs deleted file mode 100644 index 69056efd4fb..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -//---------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//---------------------------------------------------------------- - -using System; -using System.Reflection; -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: ComVisible(false)] -[assembly: CLSCompliant(true)] -[assembly: AssemblyTitle("ServerInvoker")] -[assembly: AssemblyDescription("SBGenericsVTS sample")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft Corporation")] -[assembly: AssemblyProduct("Windows Communication Foundation and Windows Workflow Foundation SDK")] -[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 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.*")] diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/ServerInvoker.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/ServerInvoker.cs deleted file mode 100644 index d1809c19dbf..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/ServerInvoker.cs +++ /dev/null @@ -1,41 +0,0 @@ - -//----------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All Rights Reserved. -//----------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using System.Runtime.Remoting; -using Microsoft.Samples.SBGenericsVTS.SharedCode; - -namespace Microsoft.Samples.SBGenericsVTS.Invoker -{ - public class ServerInvoker - { - public static void Invoke(string url, List list) - { - try - { - IService obj = (IService)Activator.GetObject(typeof(IService), url); - if (obj == null) - { - Console.WriteLine("Could not locate remote object."); - } - else - { - List listResult = (List)obj.Reverse(list); - - foreach (T t in listResult) - { - Console.WriteLine(t.ToString()); - } - } - Console.WriteLine(""); - } - catch (RemotingException e) - { - Console.WriteLine(e.Message); - } - } - } -} diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/ServerInvoker.csproj b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/ServerInvoker.csproj deleted file mode 100644 index afd858a222a..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/ServerInvoker/ServerInvoker.csproj +++ /dev/null @@ -1,55 +0,0 @@ - - - - Debug - x86 - 10.0.20815 - 2.0 - {DC79E2EA-6993-46E7-BEE8-79158E164042} - Library - Properties - ServerInvoker - ServerInvoker - v2.0 - 512 - x86 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - {691CDE7E-110B-4145-AEE1-7912243950F3} - SharedCode - - - - - \ No newline at end of file diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/Properties/AssemblyInfo.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/Properties/AssemblyInfo.cs deleted file mode 100644 index 847186361ad..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -//---------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//---------------------------------------------------------------- - -using System; -using System.Reflection; -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: ComVisible(false)] -[assembly: CLSCompliant(true)] -[assembly: AssemblyTitle("SharedCode")] -[assembly: AssemblyDescription("SBGenericsVTS sample")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft Corporation")] -[assembly: AssemblyProduct("Windows Communication Foundation and Windows Workflow Foundation SDK")] -[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 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.*")] diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/SharedCode.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/SharedCode.cs deleted file mode 100644 index b4de2f7d446..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/SharedCode.cs +++ /dev/null @@ -1,55 +0,0 @@ - -//----------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All Rights Reserved. -//----------------------------------------------------------------- - -using System; -using System.Collections.Generic; - -namespace Microsoft.Samples.SBGenericsVTS.SharedCode -{ - [Serializable] - public class Customer - { - public Customer(string name, int age) - { - CustomerName = name; - CustomerAge = age; - } - - public string CustomerName - { - get; - set; - } - - public int CustomerAge - { - get; - set; - } - - public override string ToString() - { - return "Customer:\n Name: " + CustomerName + "\n Age: " + CustomerAge; - } - } - - public interface IService - { - List Reverse(List list); - } - - public class Service : MarshalByRefObject, IService - { - public Service() - { - } - - public List Reverse(List list) - { - list.Reverse(); - return list; - } - } -} diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/SharedCode.csproj b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/SharedCode.csproj deleted file mode 100644 index 6debe1e274b..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Libraries/SharedCode/SharedCode.csproj +++ /dev/null @@ -1,49 +0,0 @@ - - - - Debug - x86 - 10.0.20815 - 2.0 - {691CDE7E-110B-4145-AEE1-7912243950F3} - Library - Properties - SharedCode - SharedCode - v2.0 - 512 - x86 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - \ No newline at end of file diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/SBGenericsVTS.sln b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/SBGenericsVTS.sln deleted file mode 100644 index 0da11717f33..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/SBGenericsVTS.sln +++ /dev/null @@ -1,97 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csproj", "{6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client20", "Client20\Client20.csproj", "{40885CB5-9A47-4A7A-A79B-32D5A64B570B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharedCode", "Libraries\SharedCode\SharedCode.csproj", "{691CDE7E-110B-4145-AEE1-7912243950F3}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client40", "Client40\Client40.csproj", "{984458B7-052A-4908-A445-78A691427FC2}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenericsVTSSerializationBinder", "Libraries\GenericsVTSSerializationBinder\GenericsVTSSerializationBinder.csproj", "{B02C9660-5D43-450C-9865-0C004CFBC63F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerInvoker", "Libraries\ServerInvoker\ServerInvoker.csproj", "{DC79E2EA-6993-46E7-BEE8-79158E164042}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{8CF29360-F780-40F7-AEED-C2ED155020D1}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|Mixed Platforms = Debug|Mixed Platforms - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|Mixed Platforms = Release|Mixed Platforms - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Debug|Any CPU.ActiveCfg = Debug|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Debug|x86.ActiveCfg = Debug|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Debug|x86.Build.0 = Debug|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Release|Any CPU.ActiveCfg = Release|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Release|Mixed Platforms.Build.0 = Release|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Release|x86.ActiveCfg = Release|x86 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1}.Release|x86.Build.0 = Release|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Debug|Any CPU.ActiveCfg = Debug|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Debug|x86.ActiveCfg = Debug|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Debug|x86.Build.0 = Debug|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Release|Any CPU.ActiveCfg = Release|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Release|Mixed Platforms.Build.0 = Release|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Release|x86.ActiveCfg = Release|x86 - {40885CB5-9A47-4A7A-A79B-32D5A64B570B}.Release|x86.Build.0 = Release|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Debug|Any CPU.ActiveCfg = Debug|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Debug|x86.ActiveCfg = Debug|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Debug|x86.Build.0 = Debug|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Release|Any CPU.ActiveCfg = Release|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Release|Mixed Platforms.Build.0 = Release|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Release|x86.ActiveCfg = Release|x86 - {691CDE7E-110B-4145-AEE1-7912243950F3}.Release|x86.Build.0 = Release|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Debug|Any CPU.ActiveCfg = Debug|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Debug|x86.ActiveCfg = Debug|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Debug|x86.Build.0 = Debug|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Release|Any CPU.ActiveCfg = Release|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Release|Mixed Platforms.Build.0 = Release|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Release|x86.ActiveCfg = Release|x86 - {984458B7-052A-4908-A445-78A691427FC2}.Release|x86.Build.0 = Release|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Debug|Any CPU.ActiveCfg = Debug|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Debug|x86.ActiveCfg = Debug|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Debug|x86.Build.0 = Debug|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Release|Any CPU.ActiveCfg = Release|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Release|Mixed Platforms.Build.0 = Release|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Release|x86.ActiveCfg = Release|x86 - {B02C9660-5D43-450C-9865-0C004CFBC63F}.Release|x86.Build.0 = Release|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Debug|Any CPU.ActiveCfg = Debug|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Debug|x86.ActiveCfg = Debug|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Debug|x86.Build.0 = Debug|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Release|Any CPU.ActiveCfg = Release|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Release|Mixed Platforms.Build.0 = Release|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Release|x86.ActiveCfg = Release|x86 - {DC79E2EA-6993-46E7-BEE8-79158E164042}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {B02C9660-5D43-450C-9865-0C004CFBC63F} = {8CF29360-F780-40F7-AEED-C2ED155020D1} - {DC79E2EA-6993-46E7-BEE8-79158E164042} = {8CF29360-F780-40F7-AEED-C2ED155020D1} - {691CDE7E-110B-4145-AEE1-7912243950F3} = {8CF29360-F780-40F7-AEED-C2ED155020D1} - EndGlobalSection -EndGlobal diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Properties/AssemblyInfo.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Properties/AssemblyInfo.cs deleted file mode 100644 index 7d7d27c7926..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -//---------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//---------------------------------------------------------------- - -using System; -using System.Reflection; -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: ComVisible(false)] -[assembly: CLSCompliant(true)] -[assembly: AssemblyTitle("Server")] -[assembly: AssemblyDescription("SBGenericsVTS sample")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft Corporation")] -[assembly: AssemblyProduct("Windows Communication Foundation and Windows Workflow Foundation SDK")] -[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 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.*")] diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Server.cs b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Server.cs deleted file mode 100644 index 2ec02b5b8f8..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Server.cs +++ /dev/null @@ -1,38 +0,0 @@ -//----------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All Rights Reserved. -//----------------------------------------------------------------- - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Remoting; -using System.Runtime.Remoting.Channels; -using System.Runtime.Remoting.Channels.Tcp; -using Microsoft.Samples.SBGenericsVTS.GenericsVTSSerializationBinder; -using Microsoft.Samples.SBGenericsVTS.SharedCode; - -namespace Microsoft.Samples.SBGenericsVTS.Server -{ - public class MyServer - { - [STAThread] - static void Main(string[] args) - { - IDictionary props = new Hashtable(); - props["port"] = 1243; - TcpChannel channel = new TcpChannel(props, null, new GenericsVTSSBSinkProvider()); - ChannelServices.RegisterChannel(channel, false); - - // Register several types of service - RemotingConfiguration.RegisterWellKnownServiceType(typeof(Service), "ListCustomerObject.rem", WellKnownObjectMode.SingleCall); - RemotingConfiguration.RegisterWellKnownServiceType(typeof(Service), "ListStringObject.rem", WellKnownObjectMode.SingleCall); - RemotingConfiguration.RegisterWellKnownServiceType(typeof(Service>), "ListListIntObject.rem", WellKnownObjectMode.SingleCall); - RemotingConfiguration.RegisterWellKnownServiceType(typeof(Service), "ListArrayIntObject.rem", WellKnownObjectMode.SingleCall); - - Console.WriteLine("The server is running."); - Console.WriteLine(""); - Console.WriteLine("Press to terminate service."); - Console.ReadLine(); - } - } -} diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Server.csproj b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Server.csproj deleted file mode 100644 index 98cb7c1a24d..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/Server/Server.csproj +++ /dev/null @@ -1,61 +0,0 @@ - - - - Debug - x86 - 10.0.20815 - 2.0 - {6A7EE8C1-57A6-40EE-BE42-EB713B9829A1} - Exe - Properties - Server - Server - v4.0 - 512 - x86 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - {B02C9660-5D43-450C-9865-0C004CFBC63F} - GenericsVTSSerializationBinder - - - {691CDE7E-110B-4145-AEE1-7912243950F3} - SharedCode - - - - - \ No newline at end of file diff --git a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/snippets.5000.json b/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/snippets.5000.json deleted file mode 100644 index 9493e733615..00000000000 --- a/framework/wcf/Basic/Contract/Data/SBGenericsVTS/CS/snippets.5000.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "host": "visualstudio" -} \ No newline at end of file