Redis.Message 1.0.0

dotnet add package Redis.Message --version 1.0.0
NuGet\Install-Package Redis.Message -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: Redis.Message, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Redis.Message as a Cake Addin
#addin nuget:?package=Redis.Message&version=1.0.0

// Install Redis.Message as a Cake Tool
#tool nuget:?package=Redis.Message&version=1.0.0

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();
  }
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 898 1/22/2019

Redis pub/sub messaging