INNER CODE UNIT · C#

MyResponse

christopherread/Obvs · Obvs.ActiveMQ.Test.Client/Program.cs:20

    public class MyResponse : IMyServiceMessage, IResponse
    {
        public string RequestId { get; set; }
        public string RequesterId { get; set; }
    }

    class Program
    {
        static void Main(string[] args)
        {
            var serviceBus = ServiceBus.Configure()
                .WithActiveMQEndpoints<IMyServiceMessage>()
                    .Named("MyService")
                    .UsingQueueFor<ICommand>()
                    .ConnectToBroker("tcp://192.168.99.100:32780") // local docker port for 61616
                    .WithCredentials("TESTUSER", "testpassword1")
                    .SerializedAsJson()
                    .AsClient()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…