Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.4 KB

File metadata and controls

31 lines (26 loc) · 1.4 KB

Build status codecov nuget downloads

Grumpy.RipplesMQ.Config

Configuration for RipplesMQ messages used to define API for Services using RipplesMQ as Message Broker.

Use the PublishSubscribeConfig and RequestResponseConfig classes to define your API for your service.

For more information about the RipplesMQ project see Grumpy.RipplesMQ.Client.

namespace Grumpy.MyService.Api
{
    public static class MyServiceConfig
    {
        public static readonly PublishSubscribeConfig MyPublishConfig = new PublishSubscribeConfig
        {
            Topic = "MyTopic",
            Persistent = false
        };

        public static readonly RequestResponseConfig MyRequestConfig = new RequestResponseConfig
        {
            Name = "MyRequest", 
            MillisecondsTimeout = 1000
        };
    }
}