From 3dadb7729281aa9e638c5db097992b24804b83cf Mon Sep 17 00:00:00 2001 From: mahdidelzendeh72 Date: Tue, 27 Dec 2022 16:28:07 +0330 Subject: [PATCH] add comment #6 --- .../Providers/BinaryGoProvider.cs | 6 +++--- .../Providers/NewtonsoftJsonProvider.cs | 6 +++--- .../Providers/SystemTextJsonBinaryProvider.cs | 6 +++--- .../Providers/SystemTextJsonProvider.cs | 7 +++---- .../Providers/BaseTextSerilizationTest.cs | 10 ++++++++++ .../Interfaces/IBaseSerialization.cs | 4 ++-- .../Interfaces/IBinarySerialization.cs | 6 +++--- .../Interfaces/ITextSerialization.cs | 6 +++--- .../Providers/BaseBinarySerializationProvider.cs | 6 +++--- .../Providers/BaseProvider.cs | 4 ++-- .../Providers/BaseTextSerializationProvider.cs | 6 +++--- 11 files changed, 38 insertions(+), 29 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Serialization.BinaryGo/Providers/BinaryGoProvider.cs b/src/CSharp/EasyMicroservices.Serialization.BinaryGo/Providers/BinaryGoProvider.cs index a0cc864..b3fd2f7 100644 --- a/src/CSharp/EasyMicroservices.Serialization.BinaryGo/Providers/BinaryGoProvider.cs +++ b/src/CSharp/EasyMicroservices.Serialization.BinaryGo/Providers/BinaryGoProvider.cs @@ -6,12 +6,12 @@ namespace EasyMicroservices.Serialization.BinaryGo.Providers { /// - /// + /// use binary go package as binary serialization provider /// public class BinaryGoProvider : BaseBinarySerializationProvider { /// - /// + /// Deserialize from byte /// /// /// @@ -22,7 +22,7 @@ public override T Deserialize(ReadOnlySpan reader) } /// - /// + /// Serialize to byte /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/Providers/NewtonsoftJsonProvider.cs b/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/Providers/NewtonsoftJsonProvider.cs index 6aa9910..809770d 100644 --- a/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/Providers/NewtonsoftJsonProvider.cs +++ b/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/Providers/NewtonsoftJsonProvider.cs @@ -5,12 +5,12 @@ namespace EasyMicroservices.Serialization.Newtonsoft.Json.Providers { /// - /// + /// use NewtonsoftJson package as text serialization provider /// public class NewtonsoftJsonProvider : BaseTextSerializationProvider { /// - /// + /// Deserialize from string /// /// /// @@ -20,7 +20,7 @@ public override T Deserialize(string value) return JsonConvert.DeserializeObject(value); } /// - /// + /// Serialize to string /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonBinaryProvider.cs b/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonBinaryProvider.cs index 5220b22..fa99cf7 100644 --- a/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonBinaryProvider.cs +++ b/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonBinaryProvider.cs @@ -6,13 +6,13 @@ namespace EasyMicroservice.Serialization.System.Text.Json.Providers { /// - /// / + /// use mocrosoft SystemTextJson package as binary serialization provider /// public class SystemTextJsonBinaryProvider : BaseBinarySerializationProvider { /// - /// + /// Deserialize from byte /// /// /// @@ -23,7 +23,7 @@ public override T Deserialize(ReadOnlySpan reader) return JsonSerializer.Deserialize(reader); } /// - /// + /// Serialize to byte /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonProvider.cs b/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonProvider.cs index a59d101..0813500 100644 --- a/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonProvider.cs +++ b/src/CSharp/EasyMicroservices.Serialization.System.Text.Json/Providers/SystemTextJsonProvider.cs @@ -6,13 +6,12 @@ namespace EasyMicroservice.Serialization.System.Text.Json.Providers { /// - /// + /// use mocrosoft SystemTextJson package as text serialization provider /// public class SystemTextJsonProvider : BaseTextSerializationProvider { /// - /// - /// + /// Deserialize from string /// /// /// /// @@ -22,7 +21,7 @@ public override T Deserialize(string value) return JsonSerializer.Deserialize(value); } /// - /// + /// Serialize to string /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization.Tests/Providers/BaseTextSerilizationTest.cs b/src/CSharp/EasyMicroservices.Serialization.Tests/Providers/BaseTextSerilizationTest.cs index 72c0bd9..98679f4 100644 --- a/src/CSharp/EasyMicroservices.Serialization.Tests/Providers/BaseTextSerilizationTest.cs +++ b/src/CSharp/EasyMicroservices.Serialization.Tests/Providers/BaseTextSerilizationTest.cs @@ -2,9 +2,19 @@ namespace EasyMicroservices.Serialization.Tests.Providers { + /// + /// base class for test + /// public abstract class BaseTextSerilizationTest { + /// + /// text serilaze provider + /// public ITextSerialization _provider { get; } + /// + /// + /// + /// public BaseTextSerilizationTest(ITextSerialization provider) { _provider = provider; diff --git a/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBaseSerialization.cs b/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBaseSerialization.cs index 11c117f..c665d2e 100644 --- a/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBaseSerialization.cs +++ b/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBaseSerialization.cs @@ -3,12 +3,12 @@ namespace EasyMicroservices.Serialization.Interfaces { /// - /// + /// general serialization method defines here /// public interface IBaseSerialization { /// - /// + /// can convert check which type is supported for serialization /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBinarySerialization.cs b/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBinarySerialization.cs index f39ba72..43d4f41 100644 --- a/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBinarySerialization.cs +++ b/src/CSharp/EasyMicroservices.Serialization/Interfaces/IBinarySerialization.cs @@ -2,18 +2,18 @@ namespace EasyMicroservices.Serialization.Interfaces { /// - /// + /// serializa to byte and visa versa /// public interface IBinarySerialization : IBaseSerialization { /// - /// + /// serializa to byte array /// /// /// ReadOnlySpan Serialize(object value); /// - /// + /// Deserialize from byte /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization/Interfaces/ITextSerialization.cs b/src/CSharp/EasyMicroservices.Serialization/Interfaces/ITextSerialization.cs index 92e6c99..f732f22 100644 --- a/src/CSharp/EasyMicroservices.Serialization/Interfaces/ITextSerialization.cs +++ b/src/CSharp/EasyMicroservices.Serialization/Interfaces/ITextSerialization.cs @@ -1,18 +1,18 @@ namespace EasyMicroservices.Serialization.Interfaces { /// - /// + /// serialize to string and visa versa /// public interface ITextSerialization : IBaseSerialization { /// - /// + /// Serialize to string /// /// /// string Serialize(object value); /// - /// + /// Deserialize from string /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization/Providers/BaseBinarySerializationProvider.cs b/src/CSharp/EasyMicroservices.Serialization/Providers/BaseBinarySerializationProvider.cs index c5d84e8..d61d20f 100644 --- a/src/CSharp/EasyMicroservices.Serialization/Providers/BaseBinarySerializationProvider.cs +++ b/src/CSharp/EasyMicroservices.Serialization/Providers/BaseBinarySerializationProvider.cs @@ -4,19 +4,19 @@ namespace EasyMicroservices.Serialization.Providers { /// - /// + /// base binary implimentaion /// public abstract class BaseBinarySerializationProvider : BaseProvider, IBinarySerialization { /// - /// + /// Deserialize from byte /// /// /// /// public abstract T Deserialize(ReadOnlySpan reader); /// - /// + /// Serialize to byte /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization/Providers/BaseProvider.cs b/src/CSharp/EasyMicroservices.Serialization/Providers/BaseProvider.cs index 0d4937f..1ee9048 100644 --- a/src/CSharp/EasyMicroservices.Serialization/Providers/BaseProvider.cs +++ b/src/CSharp/EasyMicroservices.Serialization/Providers/BaseProvider.cs @@ -4,12 +4,12 @@ namespace EasyMicroservices.Serialization.Providers { /// - /// + /// general serialization method defines here /// public abstract class BaseProvider : IBaseSerialization { /// - /// + /// can convert check which type is supported for serialization /// /// /// diff --git a/src/CSharp/EasyMicroservices.Serialization/Providers/BaseTextSerializationProvider.cs b/src/CSharp/EasyMicroservices.Serialization/Providers/BaseTextSerializationProvider.cs index ab87478..d2d49b7 100644 --- a/src/CSharp/EasyMicroservices.Serialization/Providers/BaseTextSerializationProvider.cs +++ b/src/CSharp/EasyMicroservices.Serialization/Providers/BaseTextSerializationProvider.cs @@ -4,13 +4,13 @@ namespace EasyMicroservices.Serialization.Providers { /// - /// + /// base string implimentaion /// public abstract class BaseTextSerializationProvider : BaseProvider, ITextSerialization { /// - /// + /// Deserialize from string /// /// /// @@ -18,7 +18,7 @@ public abstract class BaseTextSerializationProvider : BaseProvider, ITextSeriali /// public abstract T Deserialize(string value); /// - /// + /// Serialize to string /// /// ///