diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml
index cef2bba4e..5ac95c646 100644
--- a/.github/workflows/perf.yml
+++ b/.github/workflows/perf.yml
@@ -24,16 +24,16 @@ jobs:
steps:
- name: Install nats
run: |
- rel=$(curl -s https://api.github.com/repos/nats-io/natscli/releases/latest | jq -r .tag_name | sed s/v//)
+ rel=$(curl -H 'Authorization: token ${{ secrets.AUTH_TOKEN_FOR_GITHUB_API }}' -s https://api.github.com/repos/nats-io/natscli/releases/latest | jq -r .tag_name | sed s/v//)
wget https://github.com/nats-io/natscli/releases/download/v$rel/nats-$rel-linux-amd64.zip
unzip nats-$rel-linux-amd64.zip
sudo mv nats-$rel-linux-amd64/nats /usr/local/bin
gh_api_url="https://api.github.com/repos/nats-io/nats-server/releases"
branch="${{ matrix.config.branch }}"
if [[ $branch == "v"* ]]; then
- branch=$(curl -s $gh_api_url | jq -r '.[].tag_name' | grep $branch | sort -V | tail -1)
+ branch=$(curl -H 'Authorization: token ${{ secrets.AUTH_TOKEN_FOR_GITHUB_API }}' -s $gh_api_url | jq -r '.[].tag_name' | grep $branch | sort -V | tail -1)
elif [[ $branch == "latest" ]]; then
- branch=$(curl -s $gh_api_url/latest | jq -r .tag_name)
+ branch=$(curl -H 'Authorization: token ${{ secrets.AUTH_TOKEN_FOR_GITHUB_API }}' -s $gh_api_url/latest | jq -r .tag_name)
fi
for i in 1 2 3
do
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6adbc0225..2fca6fd31 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -27,9 +27,9 @@ jobs:
gh_api_url="https://api.github.com/repos/nats-io/nats-server/releases"
branch="${{ matrix.config.branch }}"
if [[ $branch == "v"* ]]; then
- branch=$(curl -s $gh_api_url | jq -r '.[].tag_name' | grep $branch | sort -V | tail -1)
+ branch=$(curl -H 'Authorization: token ${{ secrets.AUTH_TOKEN_FOR_GITHUB_API }}' -s $gh_api_url | jq -r '.[].tag_name' | grep $branch | sort -V | tail -1)
elif [[ $branch == "latest" ]]; then
- branch=$(curl -s $gh_api_url/latest | jq -r .tag_name)
+ branch=$(curl -H 'Authorization: token ${{ secrets.AUTH_TOKEN_FOR_GITHUB_API }}' -s $gh_api_url/latest | jq -r .tag_name)
fi
for i in 1 2 3
do
@@ -122,9 +122,9 @@ jobs:
gh_api_url="https://api.github.com/repos/nats-io/nats-server/releases"
branch="${{ matrix.config.branch }}"
if [[ $branch == "v"* ]]; then
- branch=$(curl -s $gh_api_url | jq -r '.[].tag_name' | grep $branch | sort -V | tail -1)
+ branch=$(curl -H 'Authorization: token ${{ secrets.AUTH_TOKEN_FOR_GITHUB_API }}' -s $gh_api_url | jq -r '.[].tag_name' | grep $branch | sort -V | tail -1)
elif [[ $branch == "latest" ]]; then
- branch=$(curl -s $gh_api_url/latest | jq -r .tag_name)
+ branch=$(curl -H 'Authorization: token ${{ secrets.AUTH_TOKEN_FOR_GITHUB_API }}' -s $gh_api_url/latest | jq -r .tag_name)
fi
for i in 1 2 3
do
diff --git a/NATS.Client.sln b/NATS.Client.sln
index d36b69e4b..27c245115 100644
--- a/NATS.Client.sln
+++ b/NATS.Client.sln
@@ -109,11 +109,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NATS.Net.OpenTelemetry.Test
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NATS.Client.Platform.Windows.Tests", "tests\NATS.Client.Platform.Windows.Tests\NATS.Client.Platform.Windows.Tests.csproj", "{A37994CC-A23A-415E-8B61-9468C7178A55}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NATS.Client", "src\NATS.Client\NATS.Client.csproj", "{48F1F736-3D87-4453-B497-BD9C203B2385}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example.Client", "sandbox\Example.Client\Example.Client.csproj", "{A15CCDD5-B707-4142-B99A-64F0AB62318A}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NATS.Client.Tests", "tests\NATS.Client.Tests\NATS.Client.Tests.csproj", "{6DAAAA87-8DDF-4E60-81CE-D8900327DE33}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NATS.Client.Simplified.Tests", "tests\NATS.Client.Simplified.Tests\NATS.Client.Simplified.Tests.csproj", "{6DAAAA87-8DDF-4E60-81CE-D8900327DE33}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NATS.Client.Simplified", "src\NATS.Client.Simplified\NATS.Client.Simplified.csproj", "{227C88B1-0510-4010-B142-C44725578FCD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -297,10 +297,6 @@ Global
{A37994CC-A23A-415E-8B61-9468C7178A55}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A37994CC-A23A-415E-8B61-9468C7178A55}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A37994CC-A23A-415E-8B61-9468C7178A55}.Release|Any CPU.Build.0 = Release|Any CPU
- {48F1F736-3D87-4453-B497-BD9C203B2385}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {48F1F736-3D87-4453-B497-BD9C203B2385}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {48F1F736-3D87-4453-B497-BD9C203B2385}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {48F1F736-3D87-4453-B497-BD9C203B2385}.Release|Any CPU.Build.0 = Release|Any CPU
{A15CCDD5-B707-4142-B99A-64F0AB62318A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A15CCDD5-B707-4142-B99A-64F0AB62318A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A15CCDD5-B707-4142-B99A-64F0AB62318A}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -309,6 +305,10 @@ Global
{6DAAAA87-8DDF-4E60-81CE-D8900327DE33}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6DAAAA87-8DDF-4E60-81CE-D8900327DE33}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6DAAAA87-8DDF-4E60-81CE-D8900327DE33}.Release|Any CPU.Build.0 = Release|Any CPU
+ {227C88B1-0510-4010-B142-C44725578FCD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {227C88B1-0510-4010-B142-C44725578FCD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {227C88B1-0510-4010-B142-C44725578FCD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {227C88B1-0510-4010-B142-C44725578FCD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -359,9 +359,9 @@ Global
{474BA453-9CFF-41C2-B2E7-ADD92CC93E86} = {95A69671-16CA-4133-981C-CC381B7AAA30}
{B8554582-DE19-41A2-9784-9B27C9F22429} = {C526E8AB-739A-48D7-8FC4-048978C9B650}
{A37994CC-A23A-415E-8B61-9468C7178A55} = {C526E8AB-739A-48D7-8FC4-048978C9B650}
- {48F1F736-3D87-4453-B497-BD9C203B2385} = {4827B3EC-73D8-436D-AE2A-5E29AC95FD0C}
{A15CCDD5-B707-4142-B99A-64F0AB62318A} = {95A69671-16CA-4133-981C-CC381B7AAA30}
{6DAAAA87-8DDF-4E60-81CE-D8900327DE33} = {C526E8AB-739A-48D7-8FC4-048978C9B650}
+ {227C88B1-0510-4010-B142-C44725578FCD} = {4827B3EC-73D8-436D-AE2A-5E29AC95FD0C}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8CBB7278-D093-448E-B3DE-B5991209A1AA}
diff --git a/sandbox/Example.Client/Example.Client.csproj b/sandbox/Example.Client/Example.Client.csproj
index 607b57d7b..186ac3df7 100644
--- a/sandbox/Example.Client/Example.Client.csproj
+++ b/sandbox/Example.Client/Example.Client.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/sandbox/Example.Client/Program.cs b/sandbox/Example.Client/Program.cs
index 835438fa9..0e78c0ba6 100644
--- a/sandbox/Example.Client/Program.cs
+++ b/sandbox/Example.Client/Program.cs
@@ -1,7 +1,7 @@
// See https://aka.ms/new-console-template for more information
using System.Text;
-using NATS.Client;
+using NATS.Net;
CancellationTokenSource cts = new();
diff --git a/src/NATS.Client.Simplified/NATS.Client.Simplified.csproj b/src/NATS.Client.Simplified/NATS.Client.Simplified.csproj
new file mode 100644
index 000000000..a013c71fd
--- /dev/null
+++ b/src/NATS.Client.Simplified/NATS.Client.Simplified.csproj
@@ -0,0 +1,23 @@
+
+
+
+ netstandard2.0;netstandard2.1;net6.0;net8.0
+ enable
+ enable
+ true
+
+
+ pubsub;messaging
+ NATS simplified client for .NET
+
+ true
+ NATS.Net
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/NATS.Client/NatsClient.cs b/src/NATS.Client.Simplified/NatsClient.cs
similarity index 99%
rename from src/NATS.Client/NatsClient.cs
rename to src/NATS.Client.Simplified/NatsClient.cs
index 0db53d9f5..eb489d2b3 100644
--- a/src/NATS.Client/NatsClient.cs
+++ b/src/NATS.Client.Simplified/NatsClient.cs
@@ -1,7 +1,7 @@
using System.Threading.Channels;
using NATS.Client.Core;
-namespace NATS.Client;
+namespace NATS.Net;
///
/// Represents a NATS client that provides methods for interacting with NATS server.
diff --git a/src/NATS.Client/NatsClientDefaultSerializer.cs b/src/NATS.Client.Simplified/NatsClientDefaultSerializer.cs
similarity index 97%
rename from src/NATS.Client/NatsClientDefaultSerializer.cs
rename to src/NATS.Client.Simplified/NatsClientDefaultSerializer.cs
index fecc12a9a..811c9571c 100644
--- a/src/NATS.Client/NatsClientDefaultSerializer.cs
+++ b/src/NATS.Client.Simplified/NatsClientDefaultSerializer.cs
@@ -1,7 +1,7 @@
using NATS.Client.Core;
using NATS.Client.Serializers.Json;
-namespace NATS.Client;
+namespace NATS.Net;
///
/// Default serializer interface for NATS messages.
diff --git a/src/NATS.Client/NatsClientDefaultSerializerRegistry.cs b/src/NATS.Client.Simplified/NatsClientDefaultSerializerRegistry.cs
similarity index 97%
rename from src/NATS.Client/NatsClientDefaultSerializerRegistry.cs
rename to src/NATS.Client.Simplified/NatsClientDefaultSerializerRegistry.cs
index 0b4a780bc..5b4214514 100644
--- a/src/NATS.Client/NatsClientDefaultSerializerRegistry.cs
+++ b/src/NATS.Client.Simplified/NatsClientDefaultSerializerRegistry.cs
@@ -1,6 +1,6 @@
using NATS.Client.Core;
-namespace NATS.Client;
+namespace NATS.Net;
///
/// Default implementation of the INatsSerializerRegistry interface.
diff --git a/src/NATS.Client/NATS.Client.csproj b/src/NATS.Client/NATS.Client.csproj
deleted file mode 100644
index 834a4f053..000000000
--- a/src/NATS.Client/NATS.Client.csproj
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- netstandard2.0;netstandard2.1;net6.0;net8.0
- enable
- enable
- true
-
-
- pubsub;messaging
- NATS client for .NET
-
-
- false
-
-
-
-
-
-
-
-
-
diff --git a/src/NATS.Net/NATS.Net.csproj b/src/NATS.Net/NATS.Net.csproj
index 8e0a9b422..f2ec554c2 100644
--- a/src/NATS.Net/NATS.Net.csproj
+++ b/src/NATS.Net/NATS.Net.csproj
@@ -9,7 +9,7 @@
pubsub;messaging
- NATS client for modern .NET.
+ NATS client for modern .NET
true
@@ -19,7 +19,9 @@
+
+
diff --git a/tests/NATS.Client.Tests/ClientTest.cs b/tests/NATS.Client.Simplified.Tests/ClientTest.cs
similarity index 99%
rename from tests/NATS.Client.Tests/ClientTest.cs
rename to tests/NATS.Client.Simplified.Tests/ClientTest.cs
index 226a30140..28b6875e5 100644
--- a/tests/NATS.Client.Tests/ClientTest.cs
+++ b/tests/NATS.Client.Simplified.Tests/ClientTest.cs
@@ -1,8 +1,9 @@
using System.Text;
using NATS.Client.Core.Tests;
+using NATS.Net;
// ReSharper disable AccessToDisposedClosure
-namespace NATS.Client.Tests;
+namespace NATS.Client.Simplified.Tests;
public class ClientTest
{
diff --git a/tests/NATS.Client.Tests/NATS.Client.Tests.csproj b/tests/NATS.Client.Simplified.Tests/NATS.Client.Simplified.Tests.csproj
similarity index 94%
rename from tests/NATS.Client.Tests/NATS.Client.Tests.csproj
rename to tests/NATS.Client.Simplified.Tests/NATS.Client.Simplified.Tests.csproj
index c64f26ef5..b505b1ca8 100644
--- a/tests/NATS.Client.Tests/NATS.Client.Tests.csproj
+++ b/tests/NATS.Client.Simplified.Tests/NATS.Client.Simplified.Tests.csproj
@@ -35,7 +35,7 @@
-
+