From e5918fb77f715e48d8e5dd7e70347f45a2f99b6c Mon Sep 17 00:00:00 2001 From: Sascha Kiefer Date: Fri, 11 Dec 2020 12:03:54 +0100 Subject: [PATCH 1/5] add net5.0 target framework --- src/Serialize.Linq/Serialize.Linq.csproj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Serialize.Linq/Serialize.Linq.csproj b/src/Serialize.Linq/Serialize.Linq.csproj index a26d7638..60228d36 100644 --- a/src/Serialize.Linq/Serialize.Linq.csproj +++ b/src/Serialize.Linq/Serialize.Linq.csproj @@ -21,7 +21,7 @@ - uap10.0;net40;net45;netstandard1.3;netstandard2.0 + uap10.0;net40;net45;netstandard1.3;netstandard2.0;net5.0 1.8.1 @@ -61,5 +61,8 @@ + + + \ No newline at end of file From dacb695755e4b92ad5797c438c444f312252d58a Mon Sep 17 00:00:00 2001 From: Sascha Kiefer Date: Fri, 11 Dec 2020 12:52:42 +0100 Subject: [PATCH 2/5] remove deprecated frameworks and example code --- .../NetCoreAppAssemblyLoader.cs | 28 - .../Program.cs | 28 - ...rialize.Linq.Examples.NetCoreApp1.1.csproj | 19 - .../Program.cs | 27 - ...Serialize.Linq.Examples.NetCoreApp2.csproj | 13 - .../App.config | 18 - .../Program.cs | 75 --- .../Properties/AssemblyInfo.cs | 36 - ...es.WcfContracts.Entities.Person.datasource | 10 - ...mples.WcfClientWithServiceReference.csproj | 116 ---- .../PersonService.disco | 4 - .../PersonServiceReference/PersonService.wsdl | 61 -- .../PersonServiceReference/PersonService.xsd | 629 ------------------ .../PersonServiceReference/PersonService1.xsd | 28 - .../PersonServiceReference/PersonService2.xsd | 31 - .../PersonServiceReference/PersonService3.xsd | 101 --- .../PersonServiceReference/PersonService4.xsd | 29 - .../PersonServiceReference/PersonService5.xsd | 42 -- .../PersonServiceReference/Reference.cs | 162 ----- .../PersonServiceReference/Reference.svcmap | 38 -- .../configuration.svcinfo | 10 - .../configuration91.svcinfo | 201 ------ .../Entities/Gender.cs | 13 - .../Entities/Person.cs | 33 - .../Interfaces/IPersonService.cs | 17 - .../Properties/AssemblyInfo.cs | 36 - ...erialize.Linq.Examples.WcfContracts.csproj | 63 -- .../App.config | 27 - .../Persons.csv | 100 --- .../Program.cs | 21 - .../Properties/AssemblyInfo.cs | 36 - .../Serialize.Linq.Examples.WcfHost.csproj | 71 -- .../Services/PersonService.cs | 121 ---- 33 files changed, 2244 deletions(-) delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/NetCoreAppAssemblyLoader.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Program.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Serialize.Linq.Examples.NetCoreApp1.1.csproj delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Program.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Serialize.Linq.Examples.NetCoreApp2.csproj delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/App.config delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Program.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/AssemblyInfo.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/DataSources/Serialize.Linq.Examples.WcfContracts.Entities.Person.datasource delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Serialize.Linq.Examples.WcfClientWithServiceReference.csproj delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.disco delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.wsdl delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.xsd delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService1.xsd delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService2.xsd delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService3.xsd delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService4.xsd delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService5.xsd delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.svcmap delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration.svcinfo delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration91.svcinfo delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Gender.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Person.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Interfaces/IPersonService.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Properties/AssemblyInfo.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Serialize.Linq.Examples.WcfContracts.csproj delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/App.config delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Persons.csv delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Program.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Properties/AssemblyInfo.cs delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Serialize.Linq.Examples.WcfHost.csproj delete mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Services/PersonService.cs diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/NetCoreAppAssemblyLoader.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/NetCoreAppAssemblyLoader.cs deleted file mode 100644 index 3040715c..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/NetCoreAppAssemblyLoader.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.AppDomain.NetCoreApp; -using System.Collections.Generic; -using System.Reflection; -using Serialize.Linq.Interfaces; - -namespace Serialize.Linq.Examples.NetCoreApp1 -{ - internal class NetCoreAppAssemblyLoader : IAssemblyLoader - { - private static readonly object Locked = new object(); - private static IEnumerable _assemblies; - - public IEnumerable GetAssemblies() - { - lock (Locked) - { - if (_assemblies == null) - { - Type type = GetType(); - _assemblies = AppDomain.CurrentDomain.GetAssemblies(type); - } - - return _assemblies; - } - } - } -} \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Program.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Program.cs deleted file mode 100644 index c0b9fb56..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Program.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Linq.Expressions; -using Serialize.Linq.Examples.NetStandardLibrary; -using Serialize.Linq.Extensions; -using Serialize.Linq.Serializers; - -namespace Serialize.Linq.Examples.NetCoreApp1 -{ - class Program - { - static void Main(string[] args) - { - Expression expression = Expression.Parameter(typeof(Person), "x"); - - // Serialize expression - var serializer = new ExpressionSerializer(new JsonSerializer()); - string value = serializer.SerializeText(expression); - Console.WriteLine("value:" + value); - - // This is needed for NETStandard 1.x and NETCoreApp 1.x - var expressionContext = new ExpressionContext(new NetCoreAppAssemblyLoader()); - - // Deserialize expression - var actualExpression = serializer.DeserializeText(value, expressionContext); - Console.WriteLine("actualExpression:" + actualExpression.ToJson()); - } - } -} \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Serialize.Linq.Examples.NetCoreApp1.1.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Serialize.Linq.Examples.NetCoreApp1.1.csproj deleted file mode 100644 index a016a51f..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp1.1/Serialize.Linq.Examples.NetCoreApp1.1.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - Exe - netcoreapp1.1 - Serialize.Linq.Examples.NetCoreApp1 - Serialize.Linq.Examples.NetCoreApp1 - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Program.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Program.cs deleted file mode 100644 index aa6bc76b..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Program.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Linq.Expressions; -using Serialize.Linq.Examples.NetStandardLibrary; -using Serialize.Linq.Extensions; -using Serialize.Linq.Serializers; - -namespace Serialize.Linq.Examples.NetCoreApp2 -{ - class Program - { - static void Main(string[] args) - { - // No need to do this : ExpressionExtensions.AssemblyLoader = new NetCoreAppAssemblyLoader(); - - Expression expression = Expression.Parameter(typeof(Person), "x"); - - // Serialize expression - var serializer = new ExpressionSerializer(new JsonSerializer()); - string value = serializer.SerializeText(expression); - Console.WriteLine("value:" + value); - - // Deserialize expression - var actualExpression = serializer.DeserializeText(value); - Console.WriteLine("actualExpression:" + actualExpression.ToJson()); - } - } -} \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Serialize.Linq.Examples.NetCoreApp2.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Serialize.Linq.Examples.NetCoreApp2.csproj deleted file mode 100644 index 486eccba..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.NetCoreApp2/Serialize.Linq.Examples.NetCoreApp2.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - Exe - netcoreapp2.0 - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/App.config b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/App.config deleted file mode 100644 index 95131b62..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/App.config +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Program.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Program.cs deleted file mode 100644 index 9a2c9efe..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Program.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using Serialize.Linq.Examples.WcfClientWithServiceReference.PersonServiceReference; -using Serialize.Linq.Examples.WcfContracts.Entities; -using Serialize.Linq.Extensions; - -namespace Serialize.Linq.Examples.WcfClientWithServiceReference -{ - class Program - { - static void Main() - { - using (var client = new PersonServiceClient()) - { - RunAllPersons(client); - RunAllPersonsFromJapan(client); - RunAllPersonsOfAge100(client); - RunAllMalePersons(client); - RunAllLivingPersons(client); - } - } - - private static void RunAllPersons(IPersonService client) - { - Console.WriteLine("All persons"); - - var persons = client.GetAllPersons(); - ShowPersons(persons); - } - - private static void RunAllPersonsFromJapan(IPersonService client) - { - Console.WriteLine("All persons from Japan"); - Expression> expression = p => p.Residence == "Japan"; - - var persons = client.FindPersons(expression.ToExpressionNode()); - ShowPersons(persons); - } - - private static void RunAllPersonsOfAge100(IPersonService client) - { - Console.WriteLine("All persons of Age >= 100"); - Expression> expression = p => p.Age >= 100; - - var persons = client.FindPersons(expression.ToExpressionNode()); - ShowPersons(persons); - } - - private static void RunAllMalePersons(IPersonService client) - { - Console.WriteLine("All male persons"); - Expression> expression = p => p.Gender == Gender.Male; - - var persons = client.FindPersons(expression.ToExpressionNode()); - ShowPersons(persons); - } - - private static void RunAllLivingPersons(IPersonService client) - { - Console.WriteLine("All living persons"); - Expression> expression = p => p.DeathDate == null; - - var persons = client.FindPersons(expression.ToExpressionNode()); - ShowPersons(persons); - } - - private static void ShowPersons(IEnumerable persons) - { - foreach (var person in persons) - Console.WriteLine("{0}) {1} {2}, {5}, age {3}, form {4}", person.Id, person.FirstName, person.LastName, person.Age, person.Residence, person.Gender); - Console.WriteLine(); - } - } -} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/AssemblyInfo.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/AssemblyInfo.cs deleted file mode 100644 index f5beea57..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("Serialize.Linq.Examples.WcfClientWithServiceReference")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Serialize.Linq.Examples.WcfClientWithServiceReference")] -[assembly: AssemblyCopyright("Copyright © 2012-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("c3332d8d-f284-44e7-8565-2c6b3866c395")] - -// 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.3.0")] -[assembly: AssemblyVersion("1.3.0")] -[assembly: AssemblyFileVersion("1.3.0")] diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/DataSources/Serialize.Linq.Examples.WcfContracts.Entities.Person.datasource b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/DataSources/Serialize.Linq.Examples.WcfContracts.Entities.Person.datasource deleted file mode 100644 index 77f99ec5..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Properties/DataSources/Serialize.Linq.Examples.WcfContracts.Entities.Person.datasource +++ /dev/null @@ -1,10 +0,0 @@ - - - - Serialize.Linq.Examples.WcfContracts.Entities.Person, Serialize.Linq.Examples.WcfContracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Serialize.Linq.Examples.WcfClientWithServiceReference.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Serialize.Linq.Examples.WcfClientWithServiceReference.csproj deleted file mode 100644 index 43f039a4..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Serialize.Linq.Examples.WcfClientWithServiceReference.csproj +++ /dev/null @@ -1,116 +0,0 @@ - - - - - Debug - AnyCPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E} - Exe - Properties - Serialize.Linq.Examples.WcfClientWithServiceReference - Serialize.Linq.Examples.WcfClientWithServiceReference - v4.5 - 512 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - True - True - Reference.svcmap - - - - - - - - Designer - - - Designer - - - Designer - - - Designer - - - Designer - - - Designer - - - - - - - - {94c52ad1-5d4a-4c9e-a1a3-68d3a36e6bf7} - Serialize.Linq - - - {5ad98b1c-6cc2-43fa-bfe0-4d4870c55fae} - Serialize.Linq.Examples.WcfContracts - - - - - - - - - - - - - - - - - WCF Proxy Generator - Reference.cs - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.disco b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.disco deleted file mode 100644 index ca393722..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.disco +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.wsdl b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.wsdl deleted file mode 100644 index d804e263..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.wsdl +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.xsd b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.xsd deleted file mode 100644 index 5b6698c7..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService.xsd +++ /dev/null @@ -1,629 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService1.xsd b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService1.xsd deleted file mode 100644 index 5475ff80..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService1.xsd +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - 191 - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService2.xsd b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService2.xsd deleted file mode 100644 index 0a6288da..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService2.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService3.xsd b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService3.xsd deleted file mode 100644 index 1d939e49..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService3.xsd +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService4.xsd b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService4.xsd deleted file mode 100644 index f4f69689..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService4.xsd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService5.xsd b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService5.xsd deleted file mode 100644 index d58e7f39..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/PersonService5.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.cs deleted file mode 100644 index 65ea3fe4..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.cs +++ /dev/null @@ -1,162 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Serialize.Linq.Examples.WcfClientWithServiceReference.PersonServiceReference { - using System.Runtime.Serialization; - using System; - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] - [System.Runtime.Serialization.CollectionDataContractAttribute(Name="EL", Namespace="http://schemas.datacontract.org/2004/07/Serialize.Linq.Nodes", ItemName="E")] - [System.SerializableAttribute()] - public class EL : System.Collections.Generic.List { - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] - [System.Runtime.Serialization.CollectionDataContractAttribute(Name="EIL", Namespace="http://schemas.datacontract.org/2004/07/Serialize.Linq.Nodes", ItemName="EI")] - [System.SerializableAttribute()] - public class EIL : System.Collections.Generic.List { - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] - [System.Runtime.Serialization.CollectionDataContractAttribute(Name="MBL", Namespace="http://schemas.datacontract.org/2004/07/Serialize.Linq.Nodes", ItemName="MB")] - [System.SerializableAttribute()] - public class MBL : System.Collections.Generic.List { - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] - [System.Runtime.Serialization.DataContractAttribute(Name="tE", Namespace="http://schemas.datacontract.org/2004/07/Serialize.Linq.Nodes")] - [System.SerializableAttribute()] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.ParameterExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.TypeBinaryExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.UnaryExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.BinaryExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.ConditionalExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.ConstantExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.InvocationExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.LambdaExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.ListInitExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.MemberExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.MemberInitExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.NewExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.MethodCallExpressionNode))] - [System.Runtime.Serialization.KnownTypeAttribute(typeof(Serialize.Linq.Nodes.NewArrayExpressionNode))] - public partial class tE : Serialize.Linq.Nodes.ExpressionNode, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { - - [System.NonSerializedAttribute()] - private System.Runtime.Serialization.ExtensionDataObject extensionDataField; - - [global::System.ComponentModel.BrowsableAttribute(false)] - public System.Runtime.Serialization.ExtensionDataObject ExtensionData { - get { - return this.extensionDataField; - } - set { - this.extensionDataField = value; - } - } - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] - [System.Runtime.Serialization.CollectionDataContractAttribute(Name="MIL", Namespace="http://schemas.datacontract.org/2004/07/Serialize.Linq.Nodes", ItemName="MI")] - [System.SerializableAttribute()] - public class MIL : System.Collections.Generic.List { - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(ConfigurationName="PersonServiceReference.IPersonService")] - public interface IPersonService { - - [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPersonService/GetAllPersons", ReplyAction="http://tempuri.org/IPersonService/GetAllPersonsResponse")] - Serialize.Linq.Examples.WcfContracts.Entities.Person[] GetAllPersons(); - - [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPersonService/GetAllPersons", ReplyAction="http://tempuri.org/IPersonService/GetAllPersonsResponse")] - System.Threading.Tasks.Task GetAllPersonsAsync(); - - [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPersonService/FindPersons", ReplyAction="http://tempuri.org/IPersonService/FindPersonsResponse")] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Examples.WcfClientWithServiceReference.PersonServiceReference.tE))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.ParameterExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.TypeBinaryExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.UnaryExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.BinaryExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.ConditionalExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.ConstantExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.InvocationExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.LambdaExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.ListInitExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.MemberExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.MemberInitExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.NewExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.MethodCallExpressionNode))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Serialize.Linq.Nodes.NewArrayExpressionNode))] - Serialize.Linq.Examples.WcfContracts.Entities.Person[] FindPersons(Serialize.Linq.Nodes.ExpressionNode query); - - [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPersonService/FindPersons", ReplyAction="http://tempuri.org/IPersonService/FindPersonsResponse")] - System.Threading.Tasks.Task FindPersonsAsync(Serialize.Linq.Nodes.ExpressionNode query); - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface IPersonServiceChannel : Serialize.Linq.Examples.WcfClientWithServiceReference.PersonServiceReference.IPersonService, System.ServiceModel.IClientChannel { - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class PersonServiceClient : System.ServiceModel.ClientBase, Serialize.Linq.Examples.WcfClientWithServiceReference.PersonServiceReference.IPersonService { - - public PersonServiceClient() { - } - - public PersonServiceClient(string endpointConfigurationName) : - base(endpointConfigurationName) { - } - - public PersonServiceClient(string endpointConfigurationName, string remoteAddress) : - base(endpointConfigurationName, remoteAddress) { - } - - public PersonServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : - base(endpointConfigurationName, remoteAddress) { - } - - public PersonServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : - base(binding, remoteAddress) { - } - - public Serialize.Linq.Examples.WcfContracts.Entities.Person[] GetAllPersons() { - return base.Channel.GetAllPersons(); - } - - public System.Threading.Tasks.Task GetAllPersonsAsync() { - return base.Channel.GetAllPersonsAsync(); - } - - public Serialize.Linq.Examples.WcfContracts.Entities.Person[] FindPersons(Serialize.Linq.Nodes.ExpressionNode query) { - return base.Channel.FindPersons(query); - } - - public System.Threading.Tasks.Task FindPersonsAsync(Serialize.Linq.Nodes.ExpressionNode query) { - return base.Channel.FindPersonsAsync(query); - } - } -} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.svcmap b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.svcmap deleted file mode 100644 index fc937a6a..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/Reference.svcmap +++ /dev/null @@ -1,38 +0,0 @@ - - - - false - true - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration.svcinfo b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration.svcinfo deleted file mode 100644 index 06117193..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration.svcinfo +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration91.svcinfo b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration91.svcinfo deleted file mode 100644 index 5a211d0c..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfClientWithServiceReference/Service References/PersonServiceReference/configuration91.svcinfo +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - BasicHttpBinding_IPersonService - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - None - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - - - http://localhost:9000/PersonService - - - - - - basicHttpBinding - - - BasicHttpBinding_IPersonService - - - PersonServiceReference.IPersonService - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - BasicHttpBinding_IPersonService - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Gender.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Gender.cs deleted file mode 100644 index ea02a442..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Gender.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Runtime.Serialization; - -namespace Serialize.Linq.Examples.WcfContracts.Entities -{ - [DataContract] - public enum Gender - { - [EnumMember] - Male, - [EnumMember] - Female - } -} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Person.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Person.cs deleted file mode 100644 index 7cae21b8..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Entities/Person.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Runtime.Serialization; - -namespace Serialize.Linq.Examples.WcfContracts.Entities -{ - [DataContract] - public class Person - { - [DataMember] - public int Id { get; set; } - - [DataMember] - public string FirstName { get; set; } - - [DataMember] - public string LastName { get; set; } - - [DataMember] - public int Age { get; set; } - - [DataMember] - public Gender Gender { get; set; } - - [DataMember] - public DateTime BirthDate { get; set; } - - [DataMember] - public DateTime? DeathDate { get; set; } - - [DataMember] - public string Residence { get; set; } - } -} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Interfaces/IPersonService.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Interfaces/IPersonService.cs deleted file mode 100644 index 6cb95d7e..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Interfaces/IPersonService.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Collections.Generic; -using System.ServiceModel; -using Serialize.Linq.Examples.WcfContracts.Entities; -using Serialize.Linq.Nodes; - -namespace Serialize.Linq.Examples.WcfContracts.Interfaces -{ - [ServiceContract] - public interface IPersonService - { - [OperationContract] - IList GetAllPersons(); - - [OperationContract] - IList FindPersons(ExpressionNode query); - } -} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Properties/AssemblyInfo.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Properties/AssemblyInfo.cs deleted file mode 100644 index a667e16e..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("Serialize.Linq.Examples.WcfContracts")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Serialize.Linq.Examples.WcfContracts")] -[assembly: AssemblyCopyright("Copyright © 2012-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("9c7af6f4-81df-4e91-8bce-688b427201d8")] - -// 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.3.0")] -[assembly: AssemblyVersion("1.3.0")] -[assembly: AssemblyFileVersion("1.3.0")] diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Serialize.Linq.Examples.WcfContracts.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Serialize.Linq.Examples.WcfContracts.csproj deleted file mode 100644 index a670c25d..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfContracts/Serialize.Linq.Examples.WcfContracts.csproj +++ /dev/null @@ -1,63 +0,0 @@ - - - - - Debug - AnyCPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE} - Library - Properties - Serialize.Linq.Examples.WcfContracts - Serialize.Linq.Examples.WcfContracts - v4.5 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - {94C52AD1-5D4A-4C9E-A1A3-68D3A36E6BF7} - Serialize.Linq - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/App.config b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/App.config deleted file mode 100644 index 77e84339..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/App.config +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Persons.csv b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Persons.csv deleted file mode 100644 index 152307c9..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Persons.csv +++ /dev/null @@ -1,100 +0,0 @@ -1;Jeanne Calment;F;21 February 1875;04.08.97;122 years, 164 days;France -2;Sarah Knauss;F;24.09.1880;30 December 1999;119 years, 97 days;United States -3;Lucy Hannah;F;16 July 1875;21 March 1993;117 years, 248 days;United States -4;Marie-Louise Meilleur;F;29.08.1880;16.04.1998;117 years, 230 days;Canada -5;María Capovilla;F;14.09.1889;27.08.2006;116 years, 347 days;Ecuador -6;Tane Ikai;F;18 January 1879;12 July 1995;116 years, 175 days;Japan -7;Elizabeth Bolden;F;15.08.1890;11 December 2006;116 years, 118 days;United States -8;Besse Cooper;F;26.08.96;4 December 2012;116 years, 100 days;United States -9;Misao Okawa;F;5 March 1898;Living;116 years, 78 days;Japan -10;Jiroemon Kimura;M;19.04.1897;12 June 2013;116 years, 54 days;Japan -11;Maggie Barnes;F;6 March 1882;19 January 1998;115 years, 319 days;United States -12;Dina Manfredini;F;04.04.1897;17 December 2012;115 years, 257 days;United States -13;Christian Mortensen;M;16.08.1882;25.04.1998;115 years, 252 days;United States -14;Charlotte Hughes;F;01.08.1877;17 March 1993;115 years, 228 days;United Kingdom -15;Edna Parker;F;20.04.1893;26.11.2008;115 years, 220 days;United States -16;Mary Ann Rhodes;F;12.08.82;3 March 1998;115 years, 203 days;Canada -17;Margaret Skeete;F;27 October 1878;7 May 1994;115 years, 192 days;United States -18;Gertrude Baines;F;06.04.94;11.09.09;115 years, 158 days;United States -19;Emiliano Mercado del Toro;M;21.08.91;24 January 2007;115 years, 156 days;Puerto Rico -20;Bettie Wilson;F;13.09.90;13 February 2006;115 years, 153 days;United States -21;Julie Winnefred Bertrand;F;16.09.91;18 January 2007;115 years, 124 days;Canada -22;Maria de Jesus;F;10.09.93;2 January 2009;115 years, 114 days;Portugal -23;Susie Gibson;F;31 October 1890;16 February 2006;115 years, 108 days;United States -24;Augusta Holtz;F;03.08.71;21 October 1986;115 years, 79 days;United States -25;Hendrikje van Andel-Schipper;F;29 June 1890;30.08.05;115 years, 62 days;Netherlands -26;Maude Farris-Luse;F;21 January 1887;18 March 2002;115 years, 56 days;United States -27;Marie Brémont;F;25.04.86;6 June 2001;115 years, 42 days;France -28;Koto Okubo;F;24 December 1897;12 January 2013;115 years, 19 days;Japan -29;Chiyono Hasegawa;F;20.11.96;2 December 2011;115 years, 12 days;Japan -30;Annie Jennings;F;12.11.84;20.11.99;115 years, 8 days;United Kingdom -31;Jeralean Talley;F;23 May 1899;Living;114 years, 364 days;United States -32;Eva Morris;F;08.11.85;02.11.00;114 years, 360 days;United Kingdom -33;Kama Chinen;F;10 May 1895;2 May 2010;114 years, 357 days;Japan -34;Maria Gomes Valentim;F;9 July 1896;21 June 2011;114 years, 347 days;Brazil -35;Mary Bidwell;F;19 May 1881;25.04.96;114 years, 342 days;United States -36;Susannah Mushatt Jones;F;6 July 1899;Living;114 years, 320 days;United States -37;Bernice Madigan;F;24 July 1899;Living;114 years, 302 days;United States -38;Mary Josephine Ray;F;17 May 1895;7 March 2010;114 years, 294 days;United States -39;Maria do Couto Maia-Lopes;F;24 October 1890;25 July 2005;114 years, 274 days;Portugal -40;Ramona Trinidad Iglesias-Jordan;F;31.08.89;29 May 2004;114 years, 272 days;Puerto Rico -41;Eugénie Blanchard;F;16 February 1896;04.11.10;114 years, 261 days;France -42;Venere Pizzinato-Papo;F;23.11.96;02.08.11;114 years, 252 days;Italy -43;Neva Morris;F;03.08.95;06.04.10;114 years, 246 days;United States -44;Hide Ohira;F;15.09.80;9 May 1995;114 years, 236 days;Japan -45;Mathew Beard;M;9 July 1870;16 February 1985;114 years, 222 days;United States -46;Yone Minagawa;F;4 January 1893;13.08.07;114 years, 221 days;Japan -47;María Antonia Castro;F;10 June 1881;16 January 1996;114 years, 220 days;Spain -48;Carrie Lazenby;F;9 February 1882;14.09.96;114 years, 218 days;United States -48;Ura Koyama;F;30.08.90;05.04.05;114 years, 218 days;Japan -50;Myrtle Dorsey;F;22.11.85;25 June 2000;114 years, 216 days;United States -51;Anna Eliza Williams;F;2 June 1873;27 December 1987;114 years, 208 days;United Kingdom -52;Walter Breuning;M;21.09.96;14.04.11;114 years, 205 days;United States -53;Eunice Sanborn;F;20 July 1896;31 January 2011;114 years, 195 days;United States -54;Grace Clawson;F;15.11.87;28 May 2002;114 years, 194 days;United States -55;Tase Matsunaga;F;11 May 1884;18.11.98;114 years, 191 days;Japan -56;Yukichi Chuganji;M;23 March 1889;28.09.03;114 years, 189 days;Japan -57;Kame Nakamura;F;8 March 1898;12.09.12;114 years, 188 days;Japan -58;Adelina Domingues;F;19 February 1888;21.08.02;114 years, 183 days;United States -58;Wilhelmina Kott;F;7 March 1880;06.09.94;114 years, 183 days;United States -58;Lydie Vellard;F;18 March 1875;17.09.89;114 years, 183 days;France -61;Mitoyo Kawate;F;15 May 1889;13.11.03;114 years, 182 days;Japan -62;Charlotte Benkner;F;16.11.89;14 May 2004;114 years, 180 days;United States -62;Camille Loiseau;F;13 February 1892;12.08.06;114 years, 180 days;France -64;Emma Morano-Martinuzzi;F;29.11.99;Living;114 years, 174 days;Italy -65;Anne Primout;F;5 October 1890;26 March 2005;114 years, 172 days;France -66;Ettie Mae Greene;F;08.09.77;26 February 1992;114 years, 171 days;United States -67;Irene Frank;F;1 October 1881;28 February 1996;114 years, 150 days;United States -68;Christina Cock;F;25 December 1887;22 May 2002;114 years, 148 days;Australia -69;Olivia Patricia Thomas;F;29 June 1895;16.11.09;114 years, 140 days;United States -70;Mamie Rearden;F;07.09.98;2 January 2013;114 years, 117 days;United States -70;Emma Verona Johnston;F;06.08.90;1 December 2004;114 years, 117 days;United States -72;Bettie Chatmon;F;30.04.84;16.08.98;114 years, 108 days;United States -73;Odie Matthews;F;28 December 1878;14.04.93;114 years, 107 days;United States -74;Chiyo Shiraishi;F;06.08.95;19.11.09;114 years, 105 days;Japan -75;Asa Takii;F;28.04.84;31 July 1998;114 years, 94 days;Japan -76;Florence Knapp;F;10 October 1873;11 January 1988;114 years, 93 days;United States -76;Elena Slough;F;4 July 1889;5 October 2003;114 years, 93 days;United States -78;Mary Anna Boone;F;10 February 1887;13 May 2001;114 years, 92 days;United States -78;Lucy Jane Askew;F;08.09.83;9 December 1997;114 years, 92 days;United Kingdom -80;María del Carmen López;F;03.04.83;3 July 1997;114 years, 91 days;Spain -81;Delma Kollar;F;31 October 1897;24 January 2012;114 years, 85 days;United States -81;Waka Shirahama;F;23 March 1878;16 June 1992;114 years, 85 days;Japan -83;Joan Riudavets;M;15 December 1889;5 March 2004;114 years, 81 days;Spain -84;Anna Henderson;F;5 March 1900;Living;114 years, 78 days;United States -85;Suekiku Miyanaga;F;07.04.84;20 June 1998;114 years, 74 days;Japan -86;Shige Hirooka;F;16 January 1897;29 March 2011;114 years, 72 days;Japan -87;Maggie Renfro;F;14.11.95;22 January 2010;114 years, 69 days;United States -88;Emma Tillman;F;22.11.92;28 January 2007;114 years, 67 days;United States -89;Leila Denmark;F;1 February 1898;01.04.12;114 years, 60 days;United States -90;Naomi Conner;F;30.08.99;18 October 2013;114 years, 49 days;United States -91;Florrie Baldwin;F;31 March 1896;8 May 2010;114 years, 38 days;United Kingdom -92;Amy Hulmes;F;5 October 1887;27 October 2001;114 years, 22 days;United Kingdom -93;Grace Thaxton;F;18 June 1891;6 July 2005;114 years, 18 days;United States -94;Soledad Mexia;F;13.08.99;30.08.13;114 years, 17 days;United States -95;Minnie Ward;F;19.11.85;2 December 1999;114 years, 13 days;United States -96;Arbella Ewing;F;13 March 1894;22 March 2008;114 years, 9 days;United States -97;Catherine Hagel;F;28.11.94;6 December 2008;114 years, 8 days;United States -98;Marie-Thérèse Bardet;F;2 June 1898;8 June 2012;114 years, 6 days;France -99;Virginia Dighero-Zolezzi;F;24 December 1891;28 December 2005;114 years, 4 days;Italy -100;Antonia Gerena Rivera;F;19 May 1900;Living;114 years, 3 days;United States diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Program.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Program.cs deleted file mode 100644 index 7c1778b7..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Program.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.ServiceModel; -using Serialize.Linq.Examples.WcfHost.Services; - -namespace Serialize.Linq.Examples.WcfHost -{ - class Program - { - static void Main() - { - using (var host = new ServiceHost(typeof(PersonService))) - { - host.Open(); - - Console.WriteLine("The service is ready."); - Console.WriteLine("Press to terminate service."); - Console.ReadLine(); - } - } - } -} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Properties/AssemblyInfo.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Properties/AssemblyInfo.cs deleted file mode 100644 index 64cde042..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("Serialize.Linq.Examples.WcfHost")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Serialize.Linq.Examples.WcfHost")] -[assembly: AssemblyCopyright("Copyright © 2012-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("c49418e6-3cef-4da1-a3b9-2f54442ae87b")] - -// 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.3.0")] -[assembly: AssemblyVersion("1.3.0")] -[assembly: AssemblyFileVersion("1.3.0")] diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Serialize.Linq.Examples.WcfHost.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Serialize.Linq.Examples.WcfHost.csproj deleted file mode 100644 index ad3a8da8..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Serialize.Linq.Examples.WcfHost.csproj +++ /dev/null @@ -1,71 +0,0 @@ - - - - - Debug - AnyCPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A} - Exe - Properties - Serialize.Linq.Examples.WcfHost - Serialize.Linq.Examples.WcfHost - v4.5 - 512 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - - - {94C52AD1-5D4A-4C9E-A1A3-68D3A36E6BF7} - Serialize.Linq - - - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE} - Serialize.Linq.Examples.WcfContracts - - - - - \ No newline at end of file diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Services/PersonService.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Services/PersonService.cs deleted file mode 100644 index 61361fe7..00000000 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.WcfHost/Services/PersonService.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Reflection; -using Serialize.Linq.Examples.WcfContracts.Entities; -using Serialize.Linq.Examples.WcfContracts.Interfaces; -using Serialize.Linq.Nodes; - -namespace Serialize.Linq.Examples.WcfHost.Services -{ - public class PersonService : IPersonService - { - private readonly List _persons; - private readonly Func _todayFunc; - - public PersonService() - : this(() => DateTime.Today) { } - - public PersonService(Func todayFunc) - { - if (todayFunc == null) - throw new ArgumentNullException("todayFunc"); - _todayFunc = todayFunc; - - _persons = new List(); - this.Initialize(); - } - - public IList GetAllPersons() - { - return _persons.ToList(); - } - - public IList FindPersons(ExpressionNode query) - { - try - { - var expression = query.ToBooleanExpression(); - return _persons.Where(expression.Compile()).ToList(); - } - catch (Exception ex) - { - Console.Error.WriteLine(ex); - return new List(); - } - } - - private void Initialize() - { - if (_persons.Count > 0) - return; - - var records = ReadPersonRecords(); - var culture = new CultureInfo("de-DE"); - foreach (var record in records) - { - if (string.IsNullOrWhiteSpace(record)) - continue; - - try - { - var line = record.Split(';'); - - var birthdate = DateTime.Parse(line[3], culture); - var deathdate = line[4].Equals("Living", StringComparison.OrdinalIgnoreCase) ? null : (DateTime?)DateTime.Parse(line[4], culture); - - _persons.Add(this.CreatePerson(_persons.Count + 1, line[1], line[2], birthdate, deathdate, line[6])); - } - catch (Exception ex) - { - Console.Error.WriteLine("Failed to parse record '{0}': {1}", record, ex.Message); - } - } - } - - private Person CreatePerson(int id, string name, string gender, DateTime birthDate, DateTime? deathDate, string residence) - { - var names = name.Split(new[] { ' ' }, 2, StringSplitOptions.RemoveEmptyEntries); - var age = this.CalculateAge(birthDate, deathDate); - - return new Person - { - Id = id, - Age = age, - BirthDate = birthDate, - DeathDate = deathDate, - FirstName = names[0], - LastName = names[1], - Gender = gender.Trim().ToLowerInvariant() == "f" ? Gender.Female : Gender.Male, - Residence = residence, - }; - } - - private int CalculateAge(DateTime birthDate, DateTime? deathDate) - { - var endDate = deathDate != null ? deathDate.Value : _todayFunc(); - var age = endDate.Year - birthDate.Year; - if (birthDate > endDate.AddYears(-age)) - --age; - return age; - } - - private static IEnumerable ReadPersonRecords() - { - var csvStream = Assembly.GetEntryAssembly().GetManifestResourceStream("Serialize.Linq.Examples.WcfHost.Persons.csv"); - if (csvStream == null) - throw new InvalidProgramException("Failed to read Persons."); - using (csvStream) - { - using (var reader = new StreamReader(csvStream)) - { - var text = reader.ReadToEnd(); - text = text.Replace("\r", ""); - return text.Split('\n'); - } - } - } - } -} From 6b474468488123eaeef06d521794c02d44897a67 Mon Sep 17 00:00:00 2001 From: Sascha Kiefer Date: Fri, 11 Dec 2020 12:56:09 +0100 Subject: [PATCH 3/5] add .NET5.0 example, update projects --- LICENSE => LICENSE.txt | 0 .../Serialize.Linq.Examples.RestApi.csproj | 2 +- .../Program.cs | 4 +- .../Serialize.Linq.Examples.RestClient.csproj | 2 +- .../LoggingHandler.cs | 45 ++++++ .../Program.cs | 132 ++++++++++++++++++ ...alize.Linq.Examples.RestClientNet50.csproj | 23 +++ .../Serialize.Linq.Tests.csproj | 2 +- src/Serialize.Linq.sln | 75 ++-------- src/Serialize.Linq/Serialize.Linq.csproj | 18 ++- 10 files changed, 233 insertions(+), 70 deletions(-) rename LICENSE => LICENSE.txt (100%) create mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/LoggingHandler.cs create mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Program.cs create mode 100644 src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestApi/Serialize.Linq.Examples.RestApi.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestApi/Serialize.Linq.Examples.RestApi.csproj index 7d7a44f6..c879816f 100644 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestApi/Serialize.Linq.Examples.RestApi.csproj +++ b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestApi/Serialize.Linq.Examples.RestApi.csproj @@ -294,7 +294,7 @@ - {94c52ad1-5d4a-4c9e-a1a3-68d3a36e6bf7} + {0004924b-c805-4d58-b448-9c71f45a62fa} Serialize.Linq diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Program.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Program.cs index 45757146..56fc604e 100644 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Program.cs +++ b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Program.cs @@ -12,7 +12,7 @@ namespace Serialize.Linq.Examples.RestClient { - class Program + internal class Program { private static readonly List _formatters; private static readonly MediaTypeWithQualityHeaderValue _mediaTypeJson; @@ -32,7 +32,7 @@ static Program() _loggingHandler = new LoggingHandler(new HttpClientHandler()); - _httpClient = new HttpClient(_loggingHandler) { BaseAddress = new Uri("http://localhost:51052/") }; + _httpClient = new HttpClient(_loggingHandler) { BaseAddress = new Uri("http://localhost:60376/") }; _httpClient.DefaultRequestHeaders.Accept.Clear(); _httpClient.DefaultRequestHeaders.Accept.Add(_mediaTypeJson); diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Serialize.Linq.Examples.RestClient.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Serialize.Linq.Examples.RestClient.csproj index dd8ebbc2..72bfdb79 100644 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Serialize.Linq.Examples.RestClient.csproj +++ b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClient/Serialize.Linq.Examples.RestClient.csproj @@ -61,7 +61,7 @@ - {94c52ad1-5d4a-4c9e-a1a3-68d3a36e6bf7} + {0004924b-c805-4d58-b448-9c71f45a62fa} Serialize.Linq diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/LoggingHandler.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/LoggingHandler.cs new file mode 100644 index 00000000..35a9856c --- /dev/null +++ b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/LoggingHandler.cs @@ -0,0 +1,45 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +namespace Serialize.Linq.Examples.RestClientNet50 +{ + public class LoggingHandler : DelegatingHandler + { + public LoggingHandler(HttpMessageHandler innerHandler) + : base(innerHandler) + { + } + + public bool IsLoggingEnabled { get; set; } + + protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) + { + if (IsLoggingEnabled) + { + Console.WriteLine("Request:"); + Console.WriteLine(request.ToString()); + if (request.Content != null) + { + Console.WriteLine(await request.Content.ReadAsStringAsync(cancellationToken)); + } + + Console.WriteLine(); + } + + var response = await base.SendAsync(request, cancellationToken); + + if (IsLoggingEnabled) + { + Console.WriteLine("Response:"); + Console.WriteLine(response.ToString()); + Console.WriteLine(await response.Content.ReadAsStringAsync(cancellationToken)); + + Console.WriteLine(); + } + + return response; + } + } +} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Program.cs b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Program.cs new file mode 100644 index 00000000..f8fc6345 --- /dev/null +++ b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Program.cs @@ -0,0 +1,132 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Net.Http; +using System.Net.Http.Formatting; +using System.Net.Http.Headers; +using System.Threading; +using System.Threading.Tasks; +using Newtonsoft.Json; +using Serialize.Linq.Examples.RestContracts.Entities; +using Serialize.Linq.Extensions; + +namespace Serialize.Linq.Examples.RestClientNet50 +{ + internal class Program + { + private static readonly List _formatters; + private static readonly MediaTypeWithQualityHeaderValue _mediaTypeJson; + private static readonly LoggingHandler _loggingHandler; + private static readonly HttpClient _httpClient; + + static Program() + { + _formatters = new List { new JsonMediaTypeFormatter + { + SerializerSettings = new JsonSerializerSettings + { + TypeNameHandling = TypeNameHandling.Objects + } + }}; + _mediaTypeJson = new MediaTypeWithQualityHeaderValue("application/json"); + + _loggingHandler = new LoggingHandler(new HttpClientHandler()); + + _httpClient = new HttpClient(_loggingHandler) { BaseAddress = new Uri("http://localhost:60376/") }; + _httpClient.DefaultRequestHeaders.Accept.Clear(); + _httpClient.DefaultRequestHeaders.Accept.Add(_mediaTypeJson); + + } + + private static void Main() + { + RunAsync().Wait(); + } + + private static async Task RunAsync() + { + var cancellationToken = CancellationToken.None; + + _loggingHandler.IsLoggingEnabled = true; + try + { + await RunAllPersonsAsync(cancellationToken); + await RunAllPersonsFromJapan(cancellationToken); + await RunAllPersonsOfAge100(cancellationToken); + await RunAllMalePersons(cancellationToken); + await RunAllLivingPersons(cancellationToken); + } + catch (Exception e) + { + Console.WriteLine(e.Message); + } + + } + + private static async Task RunAllPersonsAsync(CancellationToken cancellationToken) + { + Console.WriteLine("All persons"); + + var persons = await GetAllPersons(cancellationToken); + ShowPersons(persons); + } + + private static async Task RunAllPersonsFromJapan(CancellationToken cancellationToken) + { + Console.WriteLine("All persons from Japan"); + Expression> expression = p => p.Residence == "Japan"; + + var persons = await QueryPersons(expression, cancellationToken); + ShowPersons(persons); + } + + private static async Task RunAllPersonsOfAge100(CancellationToken cancellationToken) + { + Console.WriteLine("All persons of Age >= 100"); + Expression> expression = p => p.Age >= 100; + + var persons = await QueryPersons(expression, cancellationToken); + ShowPersons(persons); + } + + private static async Task RunAllMalePersons(CancellationToken cancellationToken) + { + Console.WriteLine("All male persons"); + Expression> expression = p => p.Gender == Gender.Male; + + var persons = await QueryPersons(expression, cancellationToken); + ShowPersons(persons); + } + + private static async Task RunAllLivingPersons(CancellationToken cancellationToken) + { + Console.WriteLine("All living persons"); + Expression> expression = p => p.DeathDate == null; + + var persons = await QueryPersons(expression, cancellationToken); + ShowPersons(persons); + } + + private static async Task> GetAllPersons(CancellationToken cancellationToken) + { + var response = await _httpClient.GetAsync("api/Person", cancellationToken); + response.EnsureSuccessStatusCode(); + return await response.Content.ReadAsAsync>(_formatters); + } + + private static async Task> QueryPersons(Expression> query, CancellationToken cancellationToken) + { + var queryNode = query.ToExpressionNode(); + var response = await _httpClient.PostAsync("api/Person", queryNode, _formatters[0], _mediaTypeJson, cancellationToken); + response.EnsureSuccessStatusCode(); + return await response.Content.ReadAsAsync>(_formatters); + } + + private static void ShowPersons(IEnumerable persons) + { + foreach (var person in persons) + Console.WriteLine("{0}) {1} {2}, {5}, age {3}, form {4}", person.Id, person.FirstName, person.LastName, person.Age, person.Residence, person.Gender); + Console.WriteLine(); + } + } +} diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj new file mode 100644 index 00000000..eb5abdb3 --- /dev/null +++ b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj @@ -0,0 +1,23 @@ + + + + Exe + net5.0 + + + + + + + + + + + + + + ..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Net.Http.Formatting\v4.0_4.0.0.0__31bf3856ad364e35\System.Net.Http.Formatting.dll + + + + diff --git a/src/Serialize.Linq.Tests/Serialize.Linq.Tests.csproj b/src/Serialize.Linq.Tests/Serialize.Linq.Tests.csproj index 1d81d13d..0f0aca03 100644 --- a/src/Serialize.Linq.Tests/Serialize.Linq.Tests.csproj +++ b/src/Serialize.Linq.Tests/Serialize.Linq.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp2.0 + net5.0 false diff --git a/src/Serialize.Linq.sln b/src/Serialize.Linq.sln index 235f22e7..26aab98a 100644 --- a/src/Serialize.Linq.sln +++ b/src/Serialize.Linq.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27130.2010 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30804.86 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{9C6C9508-B1D6-43E0-A96B-17581AC83631}" EndProject @@ -20,29 +20,19 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serialize.Linq.Tests.Contai EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{7F113D5D-A188-4D3F-89F4-6736E9577543}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serialize.Linq.Examples.NetCoreApp1.1", "Serialize.Linq.Examples\Serialize.Linq.Examples.NetCoreApp1.1\Serialize.Linq.Examples.NetCoreApp1.1.csproj", "{6D130CEA-4F6F-45D2-8BD7-70C36407BE37}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serialize.Linq.Examples.NetStandardLibrary", "Serialize.Linq.Examples\Serialize.Linq.Examples.NetStandardLibrary\Serialize.Linq.Examples.NetStandardLibrary.csproj", "{66A35337-3DFC-4A16-84C9-4DCCE30DA04D}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serialize.Linq.Examples.NetCoreApp2", "Serialize.Linq.Examples\Serialize.Linq.Examples.NetCoreApp2\Serialize.Linq.Examples.NetCoreApp2.csproj", "{65518084-E0DE-4474-BDEF-61028CFFD0E7}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serialize.Linq.Examples.RestApi", "Serialize.Linq.Examples\Serialize.Linq.Examples.RestApi\Serialize.Linq.Examples.RestApi.csproj", "{2649AA62-707B-456E-ABAC-73A1330EEFDD}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serialize.Linq.Examples.RestClient", "Serialize.Linq.Examples\Serialize.Linq.Examples.RestClient\Serialize.Linq.Examples.RestClient.csproj", "{425F184C-4ACF-4A60-A085-CBA4F78EB0D2}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "restapi", "restapi", "{41CC3212-8F3B-4527-B5DD-B0B87F0FE240}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serialize.Linq.Examples.WcfHost", "Serialize.Linq.Examples\Serialize.Linq.Examples.WcfHost\Serialize.Linq.Examples.WcfHost.csproj", "{4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serialize.Linq.Examples.WcfContracts", "Serialize.Linq.Examples\Serialize.Linq.Examples.WcfContracts\Serialize.Linq.Examples.WcfContracts.csproj", "{5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serialize.Linq.Examples.WcfClientWithServiceReference", "Serialize.Linq.Examples\Serialize.Linq.Examples.WcfClientWithServiceReference\Serialize.Linq.Examples.WcfClientWithServiceReference.csproj", "{358BA436-4A6E-4A15-9DA8-DE6188F3139E}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "wcf", "wcf", "{977AF2A8-9E81-4521-8CA0-A0E3FCBA9D2D}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serialize.Linq.Examples.AspNetCore", "Serialize.Linq.Examples\Serialize.Linq.Examples.AspNetCore\Serialize.Linq.Examples.AspNetCore.csproj", "{D03DA36C-01C1-45BE-9DAB-74A24D8E390B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serialize.Linq.Examples.RestContracts", "Serialize.Linq.Examples\Serialize.Linq.Examples.RestContracts\Serialize.Linq.Examples.RestContracts.csproj", "{C3E824F7-FBA9-45F0-A6BE-EAF61C5BECC9}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serialize.Linq.Examples.RestContracts", "Serialize.Linq.Examples\Serialize.Linq.Examples.RestContracts\Serialize.Linq.Examples.RestContracts.csproj", "{C3E824F7-FBA9-45F0-A6BE-EAF61C5BECC9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serialize.Linq.Examples.RestClientNet50", "Serialize.Linq.Examples\Serialize.Linq.Examples.RestClientNet50\Serialize.Linq.Examples.RestClientNet50.csproj", "{391CDCC9-F757-4854-B508-4AFFAF51C812}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -76,14 +66,6 @@ Global {439F88AF-F18C-4D27-B8D6-01D249BE647D}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU {439F88AF-F18C-4D27-B8D6-01D249BE647D}.Release|Any CPU.ActiveCfg = Release|Any CPU {439F88AF-F18C-4D27-B8D6-01D249BE647D}.Release|Any CPU.Build.0 = Release|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Release Optimize Size|Any CPU.ActiveCfg = Release|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37}.Release|Any CPU.Build.0 = Release|Any CPU {66A35337-3DFC-4A16-84C9-4DCCE30DA04D}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU {66A35337-3DFC-4A16-84C9-4DCCE30DA04D}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU {66A35337-3DFC-4A16-84C9-4DCCE30DA04D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -92,14 +74,6 @@ Global {66A35337-3DFC-4A16-84C9-4DCCE30DA04D}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU {66A35337-3DFC-4A16-84C9-4DCCE30DA04D}.Release|Any CPU.ActiveCfg = Release|Any CPU {66A35337-3DFC-4A16-84C9-4DCCE30DA04D}.Release|Any CPU.Build.0 = Release|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Release Optimize Size|Any CPU.ActiveCfg = Release|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {65518084-E0DE-4474-BDEF-61028CFFD0E7}.Release|Any CPU.Build.0 = Release|Any CPU {2649AA62-707B-456E-ABAC-73A1330EEFDD}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU {2649AA62-707B-456E-ABAC-73A1330EEFDD}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU {2649AA62-707B-456E-ABAC-73A1330EEFDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -116,30 +90,6 @@ Global {425F184C-4ACF-4A60-A085-CBA4F78EB0D2}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU {425F184C-4ACF-4A60-A085-CBA4F78EB0D2}.Release|Any CPU.ActiveCfg = Release|Any CPU {425F184C-4ACF-4A60-A085-CBA4F78EB0D2}.Release|Any CPU.Build.0 = Release|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Release Optimize Size|Any CPU.ActiveCfg = Release|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A}.Release|Any CPU.Build.0 = Release|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Release Optimize Size|Any CPU.ActiveCfg = Release|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE}.Release|Any CPU.Build.0 = Release|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Release Optimize Size|Any CPU.ActiveCfg = Release|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {358BA436-4A6E-4A15-9DA8-DE6188F3139E}.Release|Any CPU.Build.0 = Release|Any CPU {D03DA36C-01C1-45BE-9DAB-74A24D8E390B}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU {D03DA36C-01C1-45BE-9DAB-74A24D8E390B}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU {D03DA36C-01C1-45BE-9DAB-74A24D8E390B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -156,6 +106,14 @@ Global {C3E824F7-FBA9-45F0-A6BE-EAF61C5BECC9}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU {C3E824F7-FBA9-45F0-A6BE-EAF61C5BECC9}.Release|Any CPU.ActiveCfg = Release|Any CPU {C3E824F7-FBA9-45F0-A6BE-EAF61C5BECC9}.Release|Any CPU.Build.0 = Release|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Debug Optimize Size|Any CPU.ActiveCfg = Debug|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Debug Optimize Size|Any CPU.Build.0 = Debug|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Debug|Any CPU.Build.0 = Debug|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Release Optimize Size|Any CPU.ActiveCfg = Release|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Release Optimize Size|Any CPU.Build.0 = Release|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Release|Any CPU.ActiveCfg = Release|Any CPU + {391CDCC9-F757-4854-B508-4AFFAF51C812}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -164,18 +122,13 @@ Global {0004924B-C805-4D58-B448-9C71F45A62FA} = {9C6C9508-B1D6-43E0-A96B-17581AC83631} {9854CEA9-3EBA-414F-AFE9-A92CA24A52D1} = {0BFCB3B7-D3CB-4BF4-9CB5-F422DE129CDC} {439F88AF-F18C-4D27-B8D6-01D249BE647D} = {0BFCB3B7-D3CB-4BF4-9CB5-F422DE129CDC} - {6D130CEA-4F6F-45D2-8BD7-70C36407BE37} = {7F113D5D-A188-4D3F-89F4-6736E9577543} {66A35337-3DFC-4A16-84C9-4DCCE30DA04D} = {7F113D5D-A188-4D3F-89F4-6736E9577543} - {65518084-E0DE-4474-BDEF-61028CFFD0E7} = {7F113D5D-A188-4D3F-89F4-6736E9577543} {2649AA62-707B-456E-ABAC-73A1330EEFDD} = {41CC3212-8F3B-4527-B5DD-B0B87F0FE240} {425F184C-4ACF-4A60-A085-CBA4F78EB0D2} = {41CC3212-8F3B-4527-B5DD-B0B87F0FE240} {41CC3212-8F3B-4527-B5DD-B0B87F0FE240} = {7F113D5D-A188-4D3F-89F4-6736E9577543} - {4DAB4136-7D9F-4199-AE01-3083BEEF1E7A} = {977AF2A8-9E81-4521-8CA0-A0E3FCBA9D2D} - {5AD98B1C-6CC2-43FA-BFE0-4D4870C55FAE} = {977AF2A8-9E81-4521-8CA0-A0E3FCBA9D2D} - {358BA436-4A6E-4A15-9DA8-DE6188F3139E} = {977AF2A8-9E81-4521-8CA0-A0E3FCBA9D2D} - {977AF2A8-9E81-4521-8CA0-A0E3FCBA9D2D} = {7F113D5D-A188-4D3F-89F4-6736E9577543} {D03DA36C-01C1-45BE-9DAB-74A24D8E390B} = {41CC3212-8F3B-4527-B5DD-B0B87F0FE240} {C3E824F7-FBA9-45F0-A6BE-EAF61C5BECC9} = {41CC3212-8F3B-4527-B5DD-B0B87F0FE240} + {391CDCC9-F757-4854-B508-4AFFAF51C812} = {41CC3212-8F3B-4527-B5DD-B0B87F0FE240} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A6E63BC7-9C53-43E1-9122-0C097407B5C8} diff --git a/src/Serialize.Linq/Serialize.Linq.csproj b/src/Serialize.Linq/Serialize.Linq.csproj index 60228d36..4ebe178c 100644 --- a/src/Serialize.Linq/Serialize.Linq.csproj +++ b/src/Serialize.Linq/Serialize.Linq.csproj @@ -5,14 +5,14 @@ Serialize.Linq Serialize.Linq Sascha Kiefer - Copyright © 2012-2019 + Copyright © 2012-2020 Serialize.Linq Signing Key.snk true true linq;serialize - - minor bug fixes and improvements + - support for .NET 5.0 https://github.com/esskar/Serialize.Linq - https://github.com/esskar/Serialize.Linq/blob/master/LICENSE + git https://github.com/esskar/Serialize.Linq en-us @@ -22,7 +22,10 @@ uap10.0;net40;net45;netstandard1.3;netstandard2.0;net5.0 - 1.8.1 + 2.0.0 + 2.0.0.0 + 2.0.0.0 + LICENSE.txt @@ -64,5 +67,12 @@ + + + + True + + + \ No newline at end of file From d0b7b98d9ef0cb14b18fe081b1ea2b48e3751cd9 Mon Sep 17 00:00:00 2001 From: Sascha Kiefer Date: Fri, 11 Dec 2020 13:00:00 +0100 Subject: [PATCH 4/5] update readme, project settings, appveyor --- LICENSE.txt => LICENSE | 0 README.md | 6 +++--- appveyor.yml | 2 +- src/Serialize.Linq/Serialize.Linq.csproj | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename LICENSE.txt => LICENSE (100%) diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/README.md b/README.md index bfaf41c9..48fd1300 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,13 @@ If you have a feature request, a bug or any other question, just create an [issu For bugs: make sure you create a unit test, so it is easier for me to reproduce and fix it. ## Supported Platforms (or known to work with) -* .NET 4.0 +* .NET 5.0 * .NET 4.5 -* .Net Standard 1.3 +* .NET 4.0 * .Net Standard 2.0 +* .Net Standard 1.3 * UAP 10.0 - [1]: http://nuget.org/packages/Serialize.Linq [2]: https://github.com/esskar [4]: https://github.com/esskar/Serialize.Linq/issues diff --git a/appveyor.yml b/appveyor.yml index 6d06fc27..5aba38b6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,7 +1,7 @@ version: 1.0.{build} configuration: - Release -image: Visual Studio 2017 +image: Visual Studio 2019 before_build: - nuget restore src\Serialize.Linq.sln build: diff --git a/src/Serialize.Linq/Serialize.Linq.csproj b/src/Serialize.Linq/Serialize.Linq.csproj index 4ebe178c..23a65c51 100644 --- a/src/Serialize.Linq/Serialize.Linq.csproj +++ b/src/Serialize.Linq/Serialize.Linq.csproj @@ -25,7 +25,7 @@ 2.0.0 2.0.0.0 2.0.0.0 - LICENSE.txt + LICENSE @@ -69,7 +69,7 @@ - + True From 084b88912237c6188a215413132edffad915ffbe Mon Sep 17 00:00:00 2001 From: Sascha Kiefer Date: Sat, 12 Dec 2020 16:31:56 +0100 Subject: [PATCH 5/5] try to fix appveyor build --- .../Serialize.Linq.Examples.RestClientNet50.csproj | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj index eb5abdb3..12e4f50a 100644 --- a/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj +++ b/src/Serialize.Linq.Examples/Serialize.Linq.Examples.RestClientNet50/Serialize.Linq.Examples.RestClientNet50.csproj @@ -6,6 +6,7 @@ + @@ -14,10 +15,4 @@ - - - ..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Net.Http.Formatting\v4.0_4.0.0.0__31bf3856ad364e35\System.Net.Http.Formatting.dll - - -