Skip to content

Commit

Permalink
Update package to ricaun.NamedPipeWrapper.Json
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Sep 26, 2024
1 parent bd3aa6f commit 36d257a
Show file tree
Hide file tree
Showing 27 changed files with 42 additions and 39 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion ExampleCLI/MyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NamedPipeWrapper;
using ricaun.NamedPipeWrapper;

namespace ExampleCLI
{
Expand Down
2 changes: 1 addition & 1 deletion ExampleCLI/MyServer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using NamedPipeWrapper;
using ricaun.NamedPipeWrapper;

namespace ExampleCLI
{
Expand Down
2 changes: 1 addition & 1 deletion ExampleGUI/FormClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NamedPipeWrapper;
using ricaun.NamedPipeWrapper;

namespace ExampleGUI
{
Expand Down
2 changes: 1 addition & 1 deletion ExampleGUI/FormServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NamedPipeWrapper;
using ricaun.NamedPipeWrapper;

namespace ExampleGUI
{
Expand Down
4 changes: 2 additions & 2 deletions NamedPipeWrapper/IO/PipeStreamReader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NamedPipeWrapper.Json;
using ricaun.NamedPipeWrapper.Json;
using System;
using System.Collections.Generic;
using System.IO;
Expand All @@ -8,7 +8,7 @@
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

namespace NamedPipeWrapper.IO
namespace ricaun.NamedPipeWrapper.IO
{
/// <summary>
/// Wraps a <see cref="PipeStream"/> object and reads from it. Deserializes binary data sent by a <see cref="PipeStreamWriter{T}"/>
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/IO/PipeStreamWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Runtime.Serialization;
using System.Text;

namespace NamedPipeWrapper.IO
namespace ricaun.NamedPipeWrapper.IO
{
/// <summary>
/// Wraps a <see cref="PipeStream"/> object to read and write .NET CLR objects.
Expand Down
4 changes: 2 additions & 2 deletions NamedPipeWrapper/IO/PipeStreamWriter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NamedPipeWrapper.Json;
using ricaun.NamedPipeWrapper.Json;
using System;
using System.Collections.Generic;
using System.IO;
Expand All @@ -8,7 +8,7 @@
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

namespace NamedPipeWrapper.IO
namespace ricaun.NamedPipeWrapper.IO
{
/// <summary>
/// Wraps a <see cref="PipeStream"/> object and writes to it. Serializes .NET CLR objects specified by <typeparamref name="T"/>
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/Json/IJsonFormatter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.IO;

namespace NamedPipeWrapper.Json
namespace ricaun.NamedPipeWrapper.Json
{
/// <summary>
/// IJsonFormatter
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/Json/IJsonService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NamedPipeWrapper.Json
namespace ricaun.NamedPipeWrapper.Json
{
/// <summary>
/// Represents a service for JSON serialization and deserialization.
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/Json/Json/JsonService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NamedPipeWrapper.Json.Json
namespace ricaun.NamedPipeWrapper.Json.Json
{
#if NETFRAMEWORK
using System.Web.Script.Serialization;
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/Json/Json/NewtonsoftJsonService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NamedPipeWrapper.Json.Json
namespace ricaun.NamedPipeWrapper.Json.Json
{
internal class NewtonsoftJsonService : IJsonService
{
Expand Down
4 changes: 2 additions & 2 deletions NamedPipeWrapper/Json/JsonExtension.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NamedPipeWrapper.Json.Json;
using ricaun.NamedPipeWrapper.Json.Json;
using System;

namespace NamedPipeWrapper.Json
namespace ricaun.NamedPipeWrapper.Json
{
/// <summary>
/// JsonExtension
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/Json/JsonFormatter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.IO;
using System.Text;

namespace NamedPipeWrapper.Json
namespace ricaun.NamedPipeWrapper.Json
{
/// <summary>
/// JsonFormatter
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/Json/JsonUtils.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Newtonsoft.Json;

namespace NamedPipeWrapper.Json
namespace ricaun.NamedPipeWrapper.Json
{
/// <summary>
/// JsonUtils
Expand Down
6 changes: 3 additions & 3 deletions NamedPipeWrapper/NamedPipeClient.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using NamedPipeWrapper.IO;
using NamedPipeWrapper.Threading;
using ricaun.NamedPipeWrapper.IO;
using ricaun.NamedPipeWrapper.Threading;
using System;
using System.Collections.Generic;
using System.IO.Pipes;
using System.Linq;
using System.Text;
using System.Threading;

namespace NamedPipeWrapper
namespace ricaun.NamedPipeWrapper
{
/// <summary>
/// Wraps a <see cref="NamedPipeClientStream"/>.
Expand Down
6 changes: 3 additions & 3 deletions NamedPipeWrapper/NamedPipeConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
/// <summary>
/// Represents a connection between a named pipe client and server.
Expand Down
6 changes: 3 additions & 3 deletions NamedPipeWrapper/NamedPipeServer.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// NamedPipeServer
Expand Down
4 changes: 2 additions & 2 deletions NamedPipeWrapper/NamedPipeUtils.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NamedPipeWrapper;
using ricaun.NamedPipeWrapper;

namespace NamedPipeWrapper
namespace ricaun.NamedPipeWrapper
{
/// <summary>
/// NamedPipeUtils
Expand Down
4 changes: 2 additions & 2 deletions NamedPipeWrapper/NamedPipeWrapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</PropertyGroup>

<PropertyGroup>
<PackageId>NamedPipeWrapper.Json</PackageId>
<Version>1.8.0-alpha</Version>
<PackageId>ricaun.NamedPipeWrapper.Json</PackageId>
<Version>1.8.0-beta</Version>
<ProjectGuid>{73152691-3CDE-46DF-8D04-7117747DFFE7}</ProjectGuid>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/PipeExceptionEventHandler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace NamedPipeWrapper
namespace ricaun.NamedPipeWrapper
{
/// <summary>
/// Handles exceptions thrown during a read or write operation on a named pipe.
Expand Down
2 changes: 1 addition & 1 deletion NamedPipeWrapper/Threading/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading;
using System.Threading.Tasks;

namespace NamedPipeWrapper.Threading
namespace ricaun.NamedPipeWrapper.Threading
{
class Worker
{
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/DataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions UnitTests/JsonTests.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions UnitTests/SerializableTests.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/StringClassTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NamedPipeWrapper;
using ricaun.NamedPipeWrapper;
using NUnit.Framework;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/StringTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NamedPipeWrapper;
using ricaun.NamedPipeWrapper;
using NUnit.Framework;
using System;
using System.Collections.Generic;
Expand Down

0 comments on commit 36d257a

Please sign in to comment.