From 8bbbf3a74087d731d031f252eb05b8a7ef1aa936 Mon Sep 17 00:00:00 2001 From: Tomasz Maruszak Date: Sun, 4 Aug 2024 11:53:39 +0200 Subject: [PATCH] NATS pre-release --- README.md | 2 ++ build/tasks.ps1 | 1 + docs/provider_nats.md | 8 ++++---- docs/provider_nats.t.md | 10 +++++----- src/Host.Plugin.Properties.xml | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 74289afc..f99e61d1 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ SlimMessageBus is a client façade for message brokers for .NET. It comes with i - [Hybrid](docs/provider_hybrid.md) - [MQTT](docs/provider_mqtt.md) - [Memory](docs/provider_memory.md) + - [NATS](docs/provider_nats.md) - [RabbitMQ](docs/provider_rabbitmq.md) - [Redis](docs/provider_redis.md) - [SQL](docs/provider_sql.md) @@ -73,6 +74,7 @@ SlimMessageBus is a client façade for message brokers for .NET. It comes with i | `.Host.Kafka` | Transport provider for Apache Kafka | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Kafka.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Kafka) | | `.Host.Memory` | Transport provider implementation for in-process (in memory) message passing (no messaging infrastructure required) | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Memory.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Memory) | | `.Host.MQTT` | Transport provider for MQTT | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.MQTT.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.MQTT) | +| `.Host.NATS` | Transport provider for [NATS](https://nats.io/) | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.NATS.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.NATS) | | `.Host.RabbitMQ` | Transport provider for RabbitMQ | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.RabbitMQ.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.RabbitMQ) | | `.Host.Redis` | Transport provider for Redis | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Redis.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Redis) | | `.Host.Sql` (pending) | Transport provider implementation for SQL database message passing | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Sql.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Sql) | diff --git a/build/tasks.ps1 b/build/tasks.ps1 index a4043738..c2e8813a 100644 --- a/build/tasks.ps1 +++ b/build/tasks.ps1 @@ -34,6 +34,7 @@ $projects = @( "SlimMessageBus.Host.RabbitMQ", "SlimMessageBus.Host.Sql", "SlimMessageBus.Host.Sql.Common", + "SlimMessageBus.Host.Nats", "SlimMessageBus.Host.FluentValidation", diff --git a/docs/provider_nats.md b/docs/provider_nats.md index 46370a97..f8af369a 100644 --- a/docs/provider_nats.md +++ b/docs/provider_nats.md @@ -2,13 +2,13 @@ Please read the [Introduction](intro.md) before reading this provider documentation. -- [Underlying Nats client](#underlying-nats-client) +- [Underlying NATS client](#underlying-nats-client) - [Configuration](#configuration) - [Message Serialization](#message-serialization) -## Underlying Nats client +## Underlying NATS client -This transport provider uses [Nats.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the Nats broker. +This transport provider uses [NATS.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the NATS broker. ## Configuration @@ -34,7 +34,7 @@ builder.Services.AddSlimMessageBus(messageBusBuilder => ``` The `NatsMessageBusSettings` property is used to configure the underlying [Nats.Net library client](https://github.com/nats-io/nats.net). -Please consult the Nats.Net library docs for more configuration options. +Please consult the NATS.Net library docs for more configuration options. ## Message Serialization diff --git a/docs/provider_nats.t.md b/docs/provider_nats.t.md index 763b10b5..aa462fe9 100644 --- a/docs/provider_nats.t.md +++ b/docs/provider_nats.t.md @@ -2,13 +2,13 @@ Please read the [Introduction](intro.md) before reading this provider documentation. -- [Underlying Nats client](#underlying-nats-client) +- [Underlying NATS client](#underlying-nats-client) - [Configuration](#configuration) - [Message Serialization](#message-serialization) -## Underlying Nats client +## Underlying NATS client -This transport provider uses [Nats.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the Nats broker. +This transport provider uses [NATS.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the NATS broker. ## Configuration @@ -17,8 +17,8 @@ The configuration is arranged via the `.WithProviderNats(cfg => {})` method on t @[:cs](../src/Samples/Sample.Nats.WebApi/Program.cs,ExampleConfiguringMessageBus) The `NatsMessageBusSettings` property is used to configure the underlying [Nats.Net library client](https://github.com/nats-io/nats.net). -Please consult the Nats.Net library docs for more configuration options. +Please consult the NATS.Net library docs for more configuration options. ## Message Serialization -Nats offers native serialization functionality. This functionality conflicts with the serialization functionality provided by SlimMessageBus. We have chosen to leave the responsibility for serialization to SlimMessageBus and leave the default configuration of Nats serialization, which is raw serialization. This means that the message body is serialized as a byte array. \ No newline at end of file +Nats offers native serialization functionality. This functionality conflicts with the serialization functionality provided by SlimMessageBus. We have chosen to leave the responsibility for serialization to SlimMessageBus and leave the default configuration of Nats serialization, which is raw serialization. This means that the message body is serialized as a byte array. diff --git a/src/Host.Plugin.Properties.xml b/src/Host.Plugin.Properties.xml index 80f2ee46..7d57c31f 100644 --- a/src/Host.Plugin.Properties.xml +++ b/src/Host.Plugin.Properties.xml @@ -4,7 +4,7 @@ - 2.4.2 + 2.4.3-rc1 \ No newline at end of file