INNER CODE UNIT · C#
MyResponse
christopherread/Obvs · Obvs.ActiveMQ.Test.Service/Program.cs:24
public class MyResponse : IMyServiceMessage, IResponse
{
public string RequestId { get; set; }
public string RequesterId { get; set; }
}
class Program
{
static void Main(string[] args)
{
IServiceBus serviceBus = ServiceBus.Configure()
.WithActiveMQEndpoints<IMyServiceMessage>()
.Named("MyService")
.UsingQueueFor<ICommand>()
.ConnectToBroker("tcp://192.168.99.100:32780") // local docker port for 61616
.WithCredentials("TESTUSER", "testpassword")
.SerializedAsJson()
.AsServer()