Skip to content

GrumpyBusted/Grumpy.RipplesMQ.Config

Repository files navigation

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
        };
    }
}