kubemq-io / kubemq-CSharp

C# Library for KubeMQ server
MIT License
30 stars 8 forks source link
c-sharp dotnet dotnet-core kubemq kubemq-server kubernetes message-broker message-queue sdk

.NET

.NET client SDK for KubeMQ. Simple interface to work with the KubeMQ server.

Install KubeMQ Community Edition

Please visit KubeMQ Community for intallation steps.

Install CSharp SDK

Install using Nuget

Kubemq : https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio

Cookbook

Please visit CSharp SDK Cookbook

General SDK description

The SDK implements all communication patterns available through the KubeMQ server:

Framework Support

Configuration

The only required configuration setting is the KubeMQ server address.

Configuration can be set by using one of the following:

Configuration via Environment Variable

Set KubeMQServerAddress to the KubeMQ Server Address

Configuration via appsettings.json

Add the following to your appsettings.json:

{
  "KubeMQ": {
    "serverAddress": "{YourServerAddress}:{YourServerPort}"
  }
}

Configuration via app.Config

Simply add the following to your app.config:

<configuration>  
   <configSections>  
    <section name="KubeMQ" type="System.Configuration.NameValueSectionHandler"/>      
  </configSections>  

  <KubeMQ>  
    <add key="serverAddress" value="{YourServerAddress}:{YourServerPort}"/>
  </KubeMQ>  
</configuration>