Redis.Message 1.0.0

Redis pub/sub messaging

Install-Package Redis.Message -Version 1.0.0
dotnet add package Redis.Message --version 1.0.0
<PackageReference Include="Redis.Message" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Redis.Message --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

redis.message

Wrap Redis pub/sub and store message even if the website stopped

Even if the sub console is breaked, when restarted, it can continue to receive the message

Requires

.net framework 4.5+

How to use it

search Redis.Message in nuget

Example

publish message

  var name = "test 1";
  using (var client = new Redis.Message.RedisMessageClient(name, <host>, <port>, <password>))
  {
      client.Publish("test-message", new {
          text = "Hi"
      });
  }
                    

Subscribe message

  var name = "client 2";
  using (var client = new Redis.Message.RedisMessageClient(name, <host>, <port>, <password>))
  {
      // The message is dynamic type
      client.On("test-message", (message) =>
      {
          string text = message.text;
          Console.WriteLine(text);
          
      }).Run();
  }

redis.message

Wrap Redis pub/sub and store message even if the website stopped

Even if the sub console is breaked, when restarted, it can continue to receive the message

Requires

.net framework 4.5+

How to use it

search Redis.Message in nuget

Example

publish message

  var name = "test 1";
  using (var client = new Redis.Message.RedisMessageClient(name, <host>, <port>, <password>))
  {
      client.Publish("test-message", new {
          text = "Hi"
      });
  }
                    

Subscribe message

  var name = "client 2";
  using (var client = new Redis.Message.RedisMessageClient(name, <host>, <port>, <password>))
  {
      // The message is dynamic type
      client.On("test-message", (message) =>
      {
          string text = message.text;
          Console.WriteLine(text);
          
      }).Run();
  }

Release Notes

Redis pub/sub messaging

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 150 1/22/2019