From 5a06f341cfbd5ab667e8287eb38c80c3315564e3 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 14:17:47 -0300 Subject: [PATCH 01/19] Support `IJsonService` --- Build/Build.csproj | 2 +- CHANGELOG.md | 7 ++++ NamedPipeWrapper/Json/IJsonService.cs | 23 +++++++++++ NamedPipeWrapper/Json/Json/JsonService.cs | 38 +++++++++++++++++++ .../Json/Json/NewtonsoftJsonService.cs | 20 ++++++++++ NamedPipeWrapper/Json/JsonExtension.cs | 29 ++++++++++++-- NamedPipeWrapper/NamedPipeWrapper.csproj | 8 +++- nuke.cmd => build.cmd | 0 8 files changed, 121 insertions(+), 6 deletions(-) create mode 100644 NamedPipeWrapper/Json/IJsonService.cs create mode 100644 NamedPipeWrapper/Json/Json/JsonService.cs create mode 100644 NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs rename nuke.cmd => build.cmd (100%) diff --git a/Build/Build.csproj b/Build/Build.csproj index ead9320..77e1e9c 100644 --- a/Build/Build.csproj +++ b/Build/Build.csproj @@ -1,7 +1,7 @@  Exe - net6.0 + net8.0 CS0649;CS0169 . diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b2a34..b01b6f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.8.0] / 2024-09-26 +### Features +- Support `IJsonService` to use `NewtonsoftJsonService` if available. +### Removed +- Remove `Newtonsoft.Json` reference. + ## [1.7.0] / 2024-01-16 ### Features - Add `net8.0` support. @@ -40,6 +46,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Update `Test` project [vNext]: ../../compare/1.5.0...HEAD +[1.8.0]: ../../compare/1.7.0...1.8.0 [1.7.0]: ../../compare/1.6.0...1.7.0 [1.6.0]: ../../compare/1.5.3...1.6.0 [1.5.3]: ../../compare/1.5.2...1.5.3 diff --git a/NamedPipeWrapper/Json/IJsonService.cs b/NamedPipeWrapper/Json/IJsonService.cs new file mode 100644 index 0000000..47c1b9f --- /dev/null +++ b/NamedPipeWrapper/Json/IJsonService.cs @@ -0,0 +1,23 @@ +namespace NamedPipeWrapper.Json +{ + /// + /// Represents a service for JSON serialization and deserialization. + /// + public interface IJsonService + { + /// + /// Deserializes the specified JSON string into an object of type T. + /// + /// The type of the object to deserialize. + /// The JSON string to deserialize. + /// The deserialized object of type T. + T Deserialize(string value); + + /// + /// Serializes the specified object into a JSON string. + /// + /// The object to serialize. + /// The JSON string representation of the serialized object. + string Serialize(object value); + } +} \ No newline at end of file diff --git a/NamedPipeWrapper/Json/Json/JsonService.cs b/NamedPipeWrapper/Json/Json/JsonService.cs new file mode 100644 index 0000000..d7eaa25 --- /dev/null +++ b/NamedPipeWrapper/Json/Json/JsonService.cs @@ -0,0 +1,38 @@ +namespace NamedPipeWrapper.Json.Json +{ +#if NETFRAMEWORK + using System.Web.Script.Serialization; + internal class JsonService : IJsonService + { + public JsonService() + { + JavaScriptSerializer = new JavaScriptSerializer(); + } + public JavaScriptSerializer JavaScriptSerializer { get; set; } + public T Deserialize(string value) + { + return JavaScriptSerializer.Deserialize(value); + } + + public string Serialize(object value) + { + return JavaScriptSerializer.Serialize(value); + } + } +#endif +#if NET + using System.Text.Json; + internal class JsonService : IJsonService + { + public T Deserialize(string value) + { + return JsonSerializer.Deserialize(value); + } + + public string Serialize(object value) + { + return JsonSerializer.Serialize(value); + } + } +#endif +} \ No newline at end of file diff --git a/NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs b/NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs new file mode 100644 index 0000000..bd1c7bc --- /dev/null +++ b/NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs @@ -0,0 +1,20 @@ +namespace NamedPipeWrapper.Json.Json +{ + internal class NewtonsoftJsonService : IJsonService + { + public NewtonsoftJsonService() + { + Settings = new Newtonsoft.Json.JsonSerializerSettings(); + } + public Newtonsoft.Json.JsonSerializerSettings Settings { get; } + public T Deserialize(string value) + { + return Newtonsoft.Json.JsonConvert.DeserializeObject(value, Settings); + } + + public string Serialize(object value) + { + return Newtonsoft.Json.JsonConvert.SerializeObject(value, Settings); + } + } +} \ No newline at end of file diff --git a/NamedPipeWrapper/Json/JsonExtension.cs b/NamedPipeWrapper/Json/JsonExtension.cs index a68be22..aa40682 100644 --- a/NamedPipeWrapper/Json/JsonExtension.cs +++ b/NamedPipeWrapper/Json/JsonExtension.cs @@ -1,4 +1,5 @@ -using System; +using NamedPipeWrapper.Json.Json; +using System; namespace NamedPipeWrapper.Json { @@ -7,6 +8,28 @@ namespace NamedPipeWrapper.Json /// public static class JsonExtension { + /// + /// IJsonService + /// + public static IJsonService JsonService { get; set; } = CreateJsonService(); + + /// + /// Create JsonService + /// + /// + /// + /// If NewtonsoftJsonService is available, use it. + /// + private static IJsonService CreateJsonService() + { + try + { + return new NewtonsoftJsonService(); + } + catch { }; + return new JsonService(); + } + /// /// JsonDeserialize /// @@ -15,7 +38,7 @@ public static class JsonExtension /// public static T JsonDeserialize(this string value) { - return JsonUtils.DeserializeObject(value); + return JsonService.Deserialize(value); } /// @@ -26,7 +49,7 @@ public static T JsonDeserialize(this string value) /// public static string JsonSerialize(this T value) { - return JsonUtils.SerializeObject(value); + return JsonService.Serialize(value); } } } \ No newline at end of file diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index d65387e..4f9e18a 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -31,7 +31,7 @@ NamedPipeWrapper.Json - 1.7.0 + 1.8.0-alpha {73152691-3CDE-46DF-8D04-7117747DFFE7} @@ -77,8 +77,12 @@ false + + + + - + NU1903 diff --git a/nuke.cmd b/build.cmd similarity index 100% rename from nuke.cmd rename to build.cmd From 4617d8797ea5e6d9a9a9ef5acf1ec556df1f9db3 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 14:20:25 -0300 Subject: [PATCH 02/19] Update license --- LICENSE.txt => LICENSE | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) rename LICENSE.txt => LICENSE (97%) diff --git a/LICENSE.txt b/LICENSE similarity index 97% rename from LICENSE.txt rename to LICENSE index d4687a2..919c505 100644 --- a/LICENSE.txt +++ b/LICENSE @@ -1,6 +1,7 @@ The MIT License (MIT) Copyright (c) 2013 Andrew C. Dvorak +Copyright (c) 2023 ricaun Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index e6b0850..50a20eb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](../..) [![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) -[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.txt) +[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Build](../../actions/workflows/Build.yml/badge.svg)](../../actions) ***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper)*** @@ -73,4 +73,4 @@ client.Start(); # MIT License -Named Pipe Wrapper for .NET is licensed under the [MIT license](LICENSE.txt). +Named Pipe Wrapper for .NET is licensed under the [MIT license](LICENSE). From 13d3c73a722743552762c5aa32ea2638c4e66095 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 14:25:00 -0300 Subject: [PATCH 03/19] Update readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 50a20eb..6a76d57 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,15 @@ Available as a [NuGet package](https://www.nuget.org/packages/NamedPipeWrapper/) ## Json -By default, all classes gonna be serialized/deserialized by `JsonUtils` that use `Newtonsoft.Json`, in the end, a JSON string is passed using the `PipeStream`. +By default, all classes gonna be serialized/deserialized by `JsonExtension.JsonService` with the interface `IJsonService`, in the end, a JSON string is passed using the `PipeStream`. + +If `Newtonsoft.Json` exists in the project, the `NewtonsoftJsonService` will be used instead of the default `JsonService`. + +The default `JsonService` for NETFRAMWORK use `System.Web.Extensions`, and for NETCOREAPP the `System.Text.Json`. # Requirements * Requires .NET 4.0 full. -* Requires [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json) >= 9.0.1 # Usage From 1beef3b7f0cfd7abe74d72ea3a592aae49c8f185 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 14:25:52 -0300 Subject: [PATCH 04/19] Update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a76d57..8f4bc76 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Named Pipe Wrapper Json for .NET 4.0 and .NET6.0+ -[![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](../..) +[![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](https://github.com/ricaun-io/named-pipe-wrapper-json) [![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) [![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) -[![Build](../../actions/workflows/Build.yml/badge.svg)](../../actions) +[![Build](https://github.com/ricaun-io/named-pipe-wrapper-json/actions/workflows/Build.yml/badge.svg)](https://github.com/ricaun-io/named-pipe-wrapper-json/actions) ***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper)*** From 68b3ab8f40a2f7a9021c2cacb860ae37f460db63 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 14:29:57 -0300 Subject: [PATCH 05/19] Update build to LTS --- Build/build.ps1 | 2 +- Build/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/build.ps1 b/Build/build.ps1 index 9583582..d569439 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -18,7 +18,7 @@ $TempDirectory = "$PSScriptRoot\\.nuke\temp" $DotNetGlobalFile = "$PSScriptRoot\\global.json" $DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1" -$DotNetChannel = "Current" +$DotNetChannel = "LTS" $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1 $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 diff --git a/Build/build.sh b/Build/build.sh index c6d1be3..26f0b25 100644 --- a/Build/build.sh +++ b/Build/build.sh @@ -14,7 +14,7 @@ TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp" DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json" DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh" -DOTNET_CHANNEL="Current" +DOTNET_CHANNEL="LTS" export DOTNET_CLI_TELEMETRY_OPTOUT=1 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 From 23a63020069e2bd9924744f070de68e6114f73e2 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 14:32:57 -0300 Subject: [PATCH 06/19] Fix .txt --- NamedPipeWrapper/NamedPipeWrapper.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index 4f9e18a..392be85 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -96,7 +96,7 @@ - + True false From bd3aa6f6f8bd1469e488070ac933d1e834cd4a95 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 14:34:04 -0300 Subject: [PATCH 07/19] Add `PackageReadmeFile` --- NamedPipeWrapper/NamedPipeWrapper.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index 392be85..ebcc75c 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -64,6 +64,7 @@ https://github.com/$(GitHubRepositoryOwner)/$(GitHubRepository) https://github.com/$(GitHubRepositoryOwner)/$(GitHubRepository) github + README.md From 36d257af978db3deb4ae1cd2d63b422d5beaf035 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 15:02:54 -0300 Subject: [PATCH 08/19] Update package to `ricaun.NamedPipeWrapper.Json` --- CHANGELOG.md | 3 +++ ExampleCLI/MyClient.cs | 2 +- ExampleCLI/MyServer.cs | 2 +- ExampleGUI/FormClient.cs | 2 +- ExampleGUI/FormServer.cs | 2 +- NamedPipeWrapper/IO/PipeStreamReader.cs | 4 ++-- NamedPipeWrapper/IO/PipeStreamWrapper.cs | 2 +- NamedPipeWrapper/IO/PipeStreamWriter.cs | 4 ++-- NamedPipeWrapper/Json/IJsonFormatter.cs | 2 +- NamedPipeWrapper/Json/IJsonService.cs | 2 +- NamedPipeWrapper/Json/Json/JsonService.cs | 2 +- NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs | 2 +- NamedPipeWrapper/Json/JsonExtension.cs | 4 ++-- NamedPipeWrapper/Json/JsonFormatter.cs | 2 +- NamedPipeWrapper/Json/JsonUtils.cs | 2 +- NamedPipeWrapper/NamedPipeClient.cs | 6 +++--- NamedPipeWrapper/NamedPipeConnection.cs | 6 +++--- NamedPipeWrapper/NamedPipeServer.cs | 6 +++--- NamedPipeWrapper/NamedPipeUtils.cs | 4 ++-- NamedPipeWrapper/NamedPipeWrapper.csproj | 4 ++-- NamedPipeWrapper/PipeExceptionEventHandler.cs | 2 +- NamedPipeWrapper/Threading/Worker.cs | 2 +- UnitTests/DataTests.cs | 2 +- UnitTests/JsonTests.cs | 4 ++-- UnitTests/SerializableTests.cs | 4 ++-- UnitTests/StringClassTests.cs | 2 +- UnitTests/StringTests.cs | 2 +- 27 files changed, 42 insertions(+), 39 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b01b6f3..6c30d6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [1.8.0] / 2024-09-26 ### Features - Support `IJsonService` to use `NewtonsoftJsonService` if available. +### Updated +- Update namespace to `ricaun.NamedPipeWrapper`. +- Update package to `ricaun.NamedPipeWrapper.Json`. ### Removed - Remove `Newtonsoft.Json` reference. diff --git a/ExampleCLI/MyClient.cs b/ExampleCLI/MyClient.cs index b1e8044..d2ecb01 100644 --- a/ExampleCLI/MyClient.cs +++ b/ExampleCLI/MyClient.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; namespace ExampleCLI { diff --git a/ExampleCLI/MyServer.cs b/ExampleCLI/MyServer.cs index 2f6ccee..e794286 100644 --- a/ExampleCLI/MyServer.cs +++ b/ExampleCLI/MyServer.cs @@ -1,5 +1,5 @@ using System; -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; namespace ExampleCLI { diff --git a/ExampleGUI/FormClient.cs b/ExampleGUI/FormClient.cs index 2c9423f..977ac2f 100644 --- a/ExampleGUI/FormClient.cs +++ b/ExampleGUI/FormClient.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Windows.Forms; -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; namespace ExampleGUI { diff --git a/ExampleGUI/FormServer.cs b/ExampleGUI/FormServer.cs index d9f0b9d..3ff2978 100644 --- a/ExampleGUI/FormServer.cs +++ b/ExampleGUI/FormServer.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Windows.Forms; -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; namespace ExampleGUI { diff --git a/NamedPipeWrapper/IO/PipeStreamReader.cs b/NamedPipeWrapper/IO/PipeStreamReader.cs index 300b2cc..558ec7e 100644 --- a/NamedPipeWrapper/IO/PipeStreamReader.cs +++ b/NamedPipeWrapper/IO/PipeStreamReader.cs @@ -1,4 +1,4 @@ -using NamedPipeWrapper.Json; +using ricaun.NamedPipeWrapper.Json; using System; using System.Collections.Generic; using System.IO; @@ -8,7 +8,7 @@ using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; -namespace NamedPipeWrapper.IO +namespace ricaun.NamedPipeWrapper.IO { /// /// Wraps a object and reads from it. Deserializes binary data sent by a diff --git a/NamedPipeWrapper/IO/PipeStreamWrapper.cs b/NamedPipeWrapper/IO/PipeStreamWrapper.cs index 2f1c6f3..ea154de 100644 --- a/NamedPipeWrapper/IO/PipeStreamWrapper.cs +++ b/NamedPipeWrapper/IO/PipeStreamWrapper.cs @@ -6,7 +6,7 @@ using System.Runtime.Serialization; using System.Text; -namespace NamedPipeWrapper.IO +namespace ricaun.NamedPipeWrapper.IO { /// /// Wraps a object to read and write .NET CLR objects. diff --git a/NamedPipeWrapper/IO/PipeStreamWriter.cs b/NamedPipeWrapper/IO/PipeStreamWriter.cs index 921492e..f3d97c1 100644 --- a/NamedPipeWrapper/IO/PipeStreamWriter.cs +++ b/NamedPipeWrapper/IO/PipeStreamWriter.cs @@ -1,4 +1,4 @@ -using NamedPipeWrapper.Json; +using ricaun.NamedPipeWrapper.Json; using System; using System.Collections.Generic; using System.IO; @@ -8,7 +8,7 @@ using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; -namespace NamedPipeWrapper.IO +namespace ricaun.NamedPipeWrapper.IO { /// /// Wraps a object and writes to it. Serializes .NET CLR objects specified by diff --git a/NamedPipeWrapper/Json/IJsonFormatter.cs b/NamedPipeWrapper/Json/IJsonFormatter.cs index 089cae2..cef12b3 100644 --- a/NamedPipeWrapper/Json/IJsonFormatter.cs +++ b/NamedPipeWrapper/Json/IJsonFormatter.cs @@ -1,6 +1,6 @@ using System.IO; -namespace NamedPipeWrapper.Json +namespace ricaun.NamedPipeWrapper.Json { /// /// IJsonFormatter diff --git a/NamedPipeWrapper/Json/IJsonService.cs b/NamedPipeWrapper/Json/IJsonService.cs index 47c1b9f..462abc1 100644 --- a/NamedPipeWrapper/Json/IJsonService.cs +++ b/NamedPipeWrapper/Json/IJsonService.cs @@ -1,4 +1,4 @@ -namespace NamedPipeWrapper.Json +namespace ricaun.NamedPipeWrapper.Json { /// /// Represents a service for JSON serialization and deserialization. diff --git a/NamedPipeWrapper/Json/Json/JsonService.cs b/NamedPipeWrapper/Json/Json/JsonService.cs index d7eaa25..45fa2f2 100644 --- a/NamedPipeWrapper/Json/Json/JsonService.cs +++ b/NamedPipeWrapper/Json/Json/JsonService.cs @@ -1,4 +1,4 @@ -namespace NamedPipeWrapper.Json.Json +namespace ricaun.NamedPipeWrapper.Json.Json { #if NETFRAMEWORK using System.Web.Script.Serialization; diff --git a/NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs b/NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs index bd1c7bc..dabe68f 100644 --- a/NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs +++ b/NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs @@ -1,4 +1,4 @@ -namespace NamedPipeWrapper.Json.Json +namespace ricaun.NamedPipeWrapper.Json.Json { internal class NewtonsoftJsonService : IJsonService { diff --git a/NamedPipeWrapper/Json/JsonExtension.cs b/NamedPipeWrapper/Json/JsonExtension.cs index aa40682..4a4e651 100644 --- a/NamedPipeWrapper/Json/JsonExtension.cs +++ b/NamedPipeWrapper/Json/JsonExtension.cs @@ -1,7 +1,7 @@ -using NamedPipeWrapper.Json.Json; +using ricaun.NamedPipeWrapper.Json.Json; using System; -namespace NamedPipeWrapper.Json +namespace ricaun.NamedPipeWrapper.Json { /// /// JsonExtension diff --git a/NamedPipeWrapper/Json/JsonFormatter.cs b/NamedPipeWrapper/Json/JsonFormatter.cs index 14d3b02..66b44a3 100644 --- a/NamedPipeWrapper/Json/JsonFormatter.cs +++ b/NamedPipeWrapper/Json/JsonFormatter.cs @@ -1,7 +1,7 @@ using System.IO; using System.Text; -namespace NamedPipeWrapper.Json +namespace ricaun.NamedPipeWrapper.Json { /// /// JsonFormatter diff --git a/NamedPipeWrapper/Json/JsonUtils.cs b/NamedPipeWrapper/Json/JsonUtils.cs index fd25132..3742fe6 100644 --- a/NamedPipeWrapper/Json/JsonUtils.cs +++ b/NamedPipeWrapper/Json/JsonUtils.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace NamedPipeWrapper.Json +namespace ricaun.NamedPipeWrapper.Json { /// /// JsonUtils diff --git a/NamedPipeWrapper/NamedPipeClient.cs b/NamedPipeWrapper/NamedPipeClient.cs index 8d759ad..9707393 100644 --- a/NamedPipeWrapper/NamedPipeClient.cs +++ b/NamedPipeWrapper/NamedPipeClient.cs @@ -1,5 +1,5 @@ -using NamedPipeWrapper.IO; -using NamedPipeWrapper.Threading; +using ricaun.NamedPipeWrapper.IO; +using ricaun.NamedPipeWrapper.Threading; using System; using System.Collections.Generic; using System.IO.Pipes; @@ -7,7 +7,7 @@ using System.Text; using System.Threading; -namespace NamedPipeWrapper +namespace ricaun.NamedPipeWrapper { /// /// Wraps a . diff --git a/NamedPipeWrapper/NamedPipeConnection.cs b/NamedPipeWrapper/NamedPipeConnection.cs index 1894718..48e1c12 100644 --- a/NamedPipeWrapper/NamedPipeConnection.cs +++ b/NamedPipeWrapper/NamedPipeConnection.cs @@ -5,11 +5,11 @@ using System.Runtime.Serialization; using System.Text; using System.Threading; -using NamedPipeWrapper.IO; -using NamedPipeWrapper.Threading; +using ricaun.NamedPipeWrapper.IO; +using ricaun.NamedPipeWrapper.Threading; using System.Collections.Concurrent; -namespace NamedPipeWrapper +namespace ricaun.NamedPipeWrapper { /// /// Represents a connection between a named pipe client and server. diff --git a/NamedPipeWrapper/NamedPipeServer.cs b/NamedPipeWrapper/NamedPipeServer.cs index dd9fb72..e8d1b6b 100644 --- a/NamedPipeWrapper/NamedPipeServer.cs +++ b/NamedPipeWrapper/NamedPipeServer.cs @@ -1,10 +1,10 @@ -using NamedPipeWrapper.IO; -using NamedPipeWrapper.Threading; +using ricaun.NamedPipeWrapper.IO; +using ricaun.NamedPipeWrapper.Threading; using System; using System.Collections.Generic; using System.IO.Pipes; -namespace NamedPipeWrapper +namespace ricaun.NamedPipeWrapper { /// /// NamedPipeServer diff --git a/NamedPipeWrapper/NamedPipeUtils.cs b/NamedPipeWrapper/NamedPipeUtils.cs index bb23b59..dc5d9c8 100644 --- a/NamedPipeWrapper/NamedPipeUtils.cs +++ b/NamedPipeWrapper/NamedPipeUtils.cs @@ -1,6 +1,6 @@ -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; -namespace NamedPipeWrapper +namespace ricaun.NamedPipeWrapper { /// /// NamedPipeUtils diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index ebcc75c..c94a534 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -30,8 +30,8 @@ - NamedPipeWrapper.Json - 1.8.0-alpha + ricaun.NamedPipeWrapper.Json + 1.8.0-beta {73152691-3CDE-46DF-8D04-7117747DFFE7} diff --git a/NamedPipeWrapper/PipeExceptionEventHandler.cs b/NamedPipeWrapper/PipeExceptionEventHandler.cs index eb5fb3a..f25fb85 100644 --- a/NamedPipeWrapper/PipeExceptionEventHandler.cs +++ b/NamedPipeWrapper/PipeExceptionEventHandler.cs @@ -1,6 +1,6 @@ using System; -namespace NamedPipeWrapper +namespace ricaun.NamedPipeWrapper { /// /// Handles exceptions thrown during a read or write operation on a named pipe. diff --git a/NamedPipeWrapper/Threading/Worker.cs b/NamedPipeWrapper/Threading/Worker.cs index 8d9b71b..50b5c76 100644 --- a/NamedPipeWrapper/Threading/Worker.cs +++ b/NamedPipeWrapper/Threading/Worker.cs @@ -5,7 +5,7 @@ using System.Threading; using System.Threading.Tasks; -namespace NamedPipeWrapper.Threading +namespace ricaun.NamedPipeWrapper.Threading { class Worker { diff --git a/UnitTests/DataTests.cs b/UnitTests/DataTests.cs index 44a90d6..b1873f0 100644 --- a/UnitTests/DataTests.cs +++ b/UnitTests/DataTests.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading; using NUnit.Framework; -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; using log4net.Appender; using log4net.Config; using log4net.Layout; diff --git a/UnitTests/JsonTests.cs b/UnitTests/JsonTests.cs index 53d578b..1bde52c 100644 --- a/UnitTests/JsonTests.cs +++ b/UnitTests/JsonTests.cs @@ -1,5 +1,5 @@ -using NamedPipeWrapper; -using NamedPipeWrapper.Json; +using ricaun.NamedPipeWrapper; +using ricaun.NamedPipeWrapper.Json; using NUnit.Framework; using System; using System.Collections.Generic; diff --git a/UnitTests/SerializableTests.cs b/UnitTests/SerializableTests.cs index f46d1c9..f4a935d 100644 --- a/UnitTests/SerializableTests.cs +++ b/UnitTests/SerializableTests.cs @@ -1,5 +1,5 @@ -using NamedPipeWrapper; -using NamedPipeWrapper.Json; +using ricaun.NamedPipeWrapper; +using ricaun.NamedPipeWrapper.Json; using NUnit.Framework; using System; using System.Collections.Generic; diff --git a/UnitTests/StringClassTests.cs b/UnitTests/StringClassTests.cs index a4bf4f3..213a3d5 100644 --- a/UnitTests/StringClassTests.cs +++ b/UnitTests/StringClassTests.cs @@ -1,4 +1,4 @@ -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; using NUnit.Framework; using System; using System.Collections.Generic; diff --git a/UnitTests/StringTests.cs b/UnitTests/StringTests.cs index 477a2a5..3e6e5cd 100644 --- a/UnitTests/StringTests.cs +++ b/UnitTests/StringTests.cs @@ -1,4 +1,4 @@ -using NamedPipeWrapper; +using ricaun.NamedPipeWrapper; using NUnit.Framework; using System; using System.Collections.Generic; From 6686543f51c5a0ce7ccf0f466a420050746470e7 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 15:15:58 -0300 Subject: [PATCH 09/19] Use `NETFrameworkTool` to run tests in netframework --- .github/workflows/Build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index c118f34..11537c9 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -21,6 +21,13 @@ jobs: contents: write steps: - uses: actions/checkout@v1 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + - run: dotnet tool install --global NETFrameworkTool + - run: NETFrameworkTool --net 4.0 --install + - run: NETFrameworkTool --net 4.8 --install + - name: Run './build/build.cmd' run: ./build/build.cmd --root ./build env: From 7e4a4ba3ed94cd2387b879069dd27818a1106678 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 15:36:32 -0300 Subject: [PATCH 10/19] Update net --- .github/workflows/Build.yml | 5 ++--- NamedPipeWrapper/NamedPipeWrapper.csproj | 4 ++-- UnitTests/UnitTests.csproj | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 11537c9..a05090d 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -20,14 +20,13 @@ jobs: packages: write contents: write steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x' - run: dotnet tool install --global NETFrameworkTool - run: NETFrameworkTool --net 4.0 --install - - run: NETFrameworkTool --net 4.8 --install - + - name: Run './build/build.cmd' run: ./build/build.cmd --root ./build env: diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index c94a534..edc4e7b 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -2,7 +2,7 @@ - net4.0;net6.0-windows;net8.0-windows + net4.0;net4.5;net4.7;net6.0-windows;net8.0-windows Library AnyCPU latest @@ -31,7 +31,7 @@ ricaun.NamedPipeWrapper.Json - 1.8.0-beta + 1.8.0-beta.1 {73152691-3CDE-46DF-8D04-7117747DFFE7} diff --git a/UnitTests/UnitTests.csproj b/UnitTests/UnitTests.csproj index 37a89ff..66f9201 100644 --- a/UnitTests/UnitTests.csproj +++ b/UnitTests/UnitTests.csproj @@ -1,7 +1,7 @@  - net4.0;net4.8;net6.0-windows;net8.0-windows + net4.7;net4.8;net6.0-windows;net8.0-windows latest true None From 9a845b02ea33aad2b22890eded2ba6d9de25bae0 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 15:40:29 -0300 Subject: [PATCH 11/19] build --- .github/workflows/Build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index a05090d..3786595 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -20,7 +20,7 @@ jobs: packages: write contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v1 - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x' From de6b73f8d2a7a6f77e3e8b53572a9fe2591aeeaa Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 15:50:32 -0300 Subject: [PATCH 12/19] Update nunit --- NamedPipeWrapper/NamedPipeWrapper.csproj | 4 ++-- UnitTests/UnitTests.csproj | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index edc4e7b..a2a9818 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -2,7 +2,7 @@ - net4.0;net4.5;net4.7;net6.0-windows;net8.0-windows + net4.0;net4.5;net6.0-windows;net8.0-windows Library AnyCPU latest @@ -31,7 +31,7 @@ ricaun.NamedPipeWrapper.Json - 1.8.0-beta.1 + 1.8.0-beta.2 {73152691-3CDE-46DF-8D04-7117747DFFE7} diff --git a/UnitTests/UnitTests.csproj b/UnitTests/UnitTests.csproj index 66f9201..5038b95 100644 --- a/UnitTests/UnitTests.csproj +++ b/UnitTests/UnitTests.csproj @@ -1,7 +1,7 @@  - net4.7;net4.8;net6.0-windows;net8.0-windows + net4.0;net4.8;net6.0-windows;net8.0-windows latest true None @@ -10,8 +10,8 @@ - - + + NU1903 From 8e4e075f565a806a85a1d783f40e4e30b0dfddc2 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 16:15:19 -0300 Subject: [PATCH 13/19] Add Icon --- .github/workflows/Build.yml | 1 + NamedPipeWrapper/NamedPipeWrapper.csproj | 9 ++------- NamedPipeWrapper/Resources/icon.png | Bin 0 -> 1507 bytes UnitTests/UnitTests.csproj | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 NamedPipeWrapper/Resources/icon.png diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 3786595..734d078 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -26,6 +26,7 @@ jobs: dotnet-version: '8.x' - run: dotnet tool install --global NETFrameworkTool - run: NETFrameworkTool --net 4.0 --install + - run: NETFrameworkTool --net 4.5 --install - name: Run './build/build.cmd' run: ./build/build.cmd --root ./build diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index a2a9818..84baf2c 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -31,8 +31,7 @@ ricaun.NamedPipeWrapper.Json - 1.8.0-beta.2 - {73152691-3CDE-46DF-8D04-7117747DFFE7} + 1.8.0-beta.3 @@ -65,9 +64,7 @@ https://github.com/$(GitHubRepositoryOwner)/$(GitHubRepository) github README.md - @@ -104,13 +101,11 @@ - - + \ No newline at end of file diff --git a/NamedPipeWrapper/Resources/icon.png b/NamedPipeWrapper/Resources/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0d0721651ac89d11cfc3f367e5e0ffff64c2a8c6 GIT binary patch literal 1507 zcmV<91swW`P)EX>4Tx04R}tkv&MmKpe$iQ;Q-k3U&~2$WUFhAS&W0RV;#q(pG5I!Q|2}Xws0R zxHt-~1qVMCs}3&Cx;nTDg5U>;i>s5Oibq^n3@1i`*``n)+q~uKo_(bA4rW+RV2Jy_M zrE}gV4zrS^5T6r|8+1Y9N3P2*zi}=)Ebz>*kx9)Hhl#~v2g@DIN`^{2O&n2Fjq-)8 z%L?Z$&T6H`TKD8H4Cb|!G}mbkBaS5`kc0>sHIz|-g($5WDJD|1AM@}JIsPQMWO9|k z$gzMbR7j2={11M2YZj&^-K1a)2)x+##|Y593pDGt{e5iP%@e@?3|wh#f3*S3ev)2q zYmpO2rVU|00006VoOIv0RI600RN!9r;`8x010qNS#tmY z4#WTe4#WYKD-Ig~000McNliru;{^~7E+vj&>jD4(1K>$SK~z}7y_aujTU8jwfA=PB z+L@+-6>C|jA=zfJRcGhc+cZHOqZ7Kx2Ih;prIxxW{$T@y)_xeM;6Kz(#t@WE{V>#q zf>p*?3$x5N`(WB`I2_hCwOfmrrYx*o)^zFh%e^JWoA%zc?12mSp7WmfdCvQu_uO*? zjNu-@3v2=I2i7a?abO%62Ks?H))+n@1l$JX6`tEbC(y7K#8treI!JRpJ;1~HlD`0? z0+J**OOh-KLcSsvfLDwVn}Or1gEtx*W%Pk_lSU(22b2P5mlMzeyqnpe3Q)1RyqtqxFSep0E=HrI z(rF_iB;ao#q9vdj_$gadwg7+vlL@ce%>hXwK0C|hsVO5O8kLHg1`snk-UkYdcyie7 zd>sf74hE@nI`s}K1m06W#Ed%Moo~6+Ih_mygM1SRP;Rs78M0U1C)99%0z9Z?sg(jP z2!g;P4hJv#d|1q8!qF({#l_`@Sb>nJyyTqyKR0h0iiXu<;b>D6m)hHDs;ODd^eJGS z33vi%&Sf=x{W@o_T;ZV&8*td|x`mWktvs`B8@`Pj8N7B)Ya(W#&jdUT>|D;-O6L0|7x{@OqxHLJ*=NB%pkWN$Y za$y!lT_Qw5U~6S1tsW2ackb}(#00V|1B{t~XMq~MGfJh?{5&$kcaaG9*=$r-ROpUI zabY1(R#)S%t>w>HjL}$ZL}V2xE+}BNFarrA1MJ1cyt!)^hj;A2Vm2Eho0*&A?K5XM z-q)v=Xu=Fc_2%)p?c4cq-#)#Y%@P*UX-Q#<}Lj0!vzZe#jb6yp8i9e_r|hxVM+rySj39CxP{%a)A6Xm({%` zC3!Ef*nh*Fjcy>RRzU}M7wQRV>2KH%{BRcqbOGV)^FSMrGU8=C9%norH%dMayp_2R zsQ4W?1e{vQ!>v?`k9vCe;M_UVvdl|9AMfnhLrGDQ9s#cce`pB+_zI|1jQ*cEStc|z zM6j!izh-8Z+K-(-Pv_tuN1K{xZD>Fggk0pG0$*hBgxNTvERxqU8zU1F9PaGom(fv8 z&r^v6hfbg7%l>{k{C+$xSGGw95HymjR$xA#i-{-*a;<~A?pAS@F?KaxSkIJ1BwV;_!nF)ct5bWucH6}002ov JPDHLkV1n&nu?heH literal 0 HcmV?d00001 diff --git a/UnitTests/UnitTests.csproj b/UnitTests/UnitTests.csproj index 5038b95..7280df6 100644 --- a/UnitTests/UnitTests.csproj +++ b/UnitTests/UnitTests.csproj @@ -1,7 +1,7 @@  - net4.0;net4.8;net6.0-windows;net8.0-windows + net4.0;net4.5;net4.8;net6.0-windows;net8.0-windows latest true None From a8d8bc7301e2c9c60f992c91d3c4e5b79d31108e Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 16:25:29 -0300 Subject: [PATCH 14/19] Update readme --- README.md | 49 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 8f4bc76..3770bc2 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,28 @@ -# Named Pipe Wrapper Json for .NET 4.0 and .NET6.0+ +# ricaun.NamedPipeWrapper.Json [![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](https://github.com/ricaun-io/named-pipe-wrapper-json) [![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) [![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Build](https://github.com/ricaun-io/named-pipe-wrapper-json/actions/workflows/Build.yml/badge.svg)](https://github.com/ricaun-io/named-pipe-wrapper-json/actions) +[![nuget](https://img.shields.io/nuget/v/ricaun.NamedPipeWrapper.Json?logo=nuget&label=nuget&color=blue)](https://www.nuget.org/packages/ricaun.NamedPipeWrapper.Json) -***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper)*** +Named Pipe Wrapper Json for .NET 4.0 and .NET6.0. -A simple, easy to use, strongly-typed wrapper around .NET named pipes. +***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper)*** -# NuGet Package +## PackageReference -Available as a [NuGet package](https://www.nuget.org/packages/NamedPipeWrapper/). +```xml + +``` -# Features +## Features * Create named pipe servers that can handle multiple client connections simultaneously. * Send strongly-typed messages between clients and servers: any serializable .NET object can be sent over a pipe and will be automatically serialized/deserialized, including cyclical references and complex object graphs. * Messages are sent and received asynchronously on a separate background thread and marshalled back to the calling thread (typically the UI). * Supports large messages - up to 300 MiB. +* Design to work inside Autodesk Revit without conflict. ## Json @@ -28,11 +32,8 @@ If `Newtonsoft.Json` exists in the project, the `NewtonsoftJsonService` will be The default `JsonService` for NETFRAMWORK use `System.Web.Extensions`, and for NETCOREAPP the `System.Text.Json`. -# Requirements - -* Requires .NET 4.0 full. -# Usage +## Usage Server: @@ -74,6 +75,30 @@ client.Start(); // ... ``` -# MIT License +## NamedPipeUtils + +The `NamedPipeUtils` class provides some utility methods for working with named pipes. + +```c# +bool pipeExists = NamedPipeUtils.PipeFileExists("MyServerPipe"); +``` + +## IJsonService + +Override the default `JsonService` with the interface `IJsonService`: + +```c# +JsonExtension.JsonService = new MyJsonService(); +``` + +## Release + +* [Latest release](https://github.com/ricaun-io/ricaun.NamedPipeWrapper.Json/releases/latest) + +## License + +This project is [licensed](LICENSE) under the [MIT License](https://en.wikipedia.org/wiki/MIT_License). + +--- -Named Pipe Wrapper for .NET is licensed under the [MIT license](LICENSE). +Do you like this project? Please [star this project on GitHub](https://github.com/ricaun-io/ricaun.NamedPipeWrapper.Json/stargazers)! From 9036311dfad87e079e871f5cb97f0e9e9447ce7a Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 16:32:04 -0300 Subject: [PATCH 15/19] Release to nuget --- .github/workflows/Build.yml | 2 ++ NamedPipeWrapper/NamedPipeWrapper.csproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 734d078..e654e2d 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -34,3 +34,5 @@ jobs: GitHubToken: ${{ secrets.GITHUB_TOKEN }} SignFile: ${{ secrets.SIGN_FILE }} SignPassword: ${{ secrets.SIGN_PASSWORD }} + NugetApiUrl: ${{ secrets.NUGET_API_URL }} + NugetApiKey: ${{ secrets.NUGET_API_KEY }} diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index 84baf2c..9048a46 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -31,7 +31,7 @@ ricaun.NamedPipeWrapper.Json - 1.8.0-beta.3 + 1.8.0-rc From 1ecacc909137482bf610fc997bccc5fe5868275e Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 16:35:29 -0300 Subject: [PATCH 16/19] Update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3770bc2..7b3fd18 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ [![Build](https://github.com/ricaun-io/named-pipe-wrapper-json/actions/workflows/Build.yml/badge.svg)](https://github.com/ricaun-io/named-pipe-wrapper-json/actions) [![nuget](https://img.shields.io/nuget/v/ricaun.NamedPipeWrapper.Json?logo=nuget&label=nuget&color=blue)](https://www.nuget.org/packages/ricaun.NamedPipeWrapper.Json) -Named Pipe Wrapper Json for .NET 4.0 and .NET6.0. +Named Pipe Wrapper Json for .NET Framework 4.0 and .NET Core 6.0. -***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper)*** +***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper), the code updated to support NET Core and json.*** ## PackageReference From 33ee639c685519e43bf9bd4e3e7d7931dc0303f4 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 16:46:27 -0300 Subject: [PATCH 17/19] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c30d6b..c89d632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [1.8.0] / 2024-09-26 ### Features - Support `IJsonService` to use `NewtonsoftJsonService` if available. +- Release nuget [ricaun.NamedPipeWrapper.Json](https://www.nuget.org/packages/ricaun.NamedPipeWrapper.Json). ### Updated - Update namespace to `ricaun.NamedPipeWrapper`. - Update package to `ricaun.NamedPipeWrapper.Json`. From 9723728fc9b3d54db1b6ad90da8793bf966f6975 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 17:01:28 -0300 Subject: [PATCH 18/19] Update readme --- NamedPipeWrapper/NamedPipeWrapper.csproj | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index 9048a46..2ad5026 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -31,7 +31,7 @@ ricaun.NamedPipeWrapper.Json - 1.8.0-rc + 1.8.0-rc.1 diff --git a/README.md b/README.md index 7b3fd18..202ffeb 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Named Pipe Wrapper Json for .NET Framework 4.0 and .NET Core 6.0. -***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper), the code updated to support NET Core and json.*** +***This project is based of Andrew C. Dvorak's work at [Named Pipe Wrapper](https://github.com/acdvorak/named-pipe-wrapper), updated to support NET Core and Json.*** ## PackageReference @@ -93,7 +93,7 @@ JsonExtension.JsonService = new MyJsonService(); ## Release -* [Latest release](https://github.com/ricaun-io/ricaun.NamedPipeWrapper.Json/releases/latest) +* [Latest release](https://github.com/ricaun-io/named-pipe-wrapper-json/releases/latest) ## License @@ -101,4 +101,4 @@ This project is [licensed](LICENSE) under the [MIT License](https://en.wikipedia --- -Do you like this project? Please [star this project on GitHub](https://github.com/ricaun-io/ricaun.NamedPipeWrapper.Json/stargazers)! +Do you like this project? Please [star this project on GitHub](https://github.com/ricaun-io/named-pipe-wrapper-json/stargazers)! From 456753608c9d9fa395dd1ae73f3e519db9e9b146 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 26 Sep 2024 17:17:00 -0300 Subject: [PATCH 19/19] Version 1.8.0 --- NamedPipeWrapper/NamedPipeWrapper.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NamedPipeWrapper/NamedPipeWrapper.csproj b/NamedPipeWrapper/NamedPipeWrapper.csproj index 2ad5026..6268f34 100644 --- a/NamedPipeWrapper/NamedPipeWrapper.csproj +++ b/NamedPipeWrapper/NamedPipeWrapper.csproj @@ -31,7 +31,7 @@ ricaun.NamedPipeWrapper.Json - 1.8.0-rc.1 + 1.8.0