INNER CODE UNIT · C#
Program
christopherread/Obvs · Obvs.ActiveMQ.Test.Client/Program.cs:26
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()
.CreateClient();
serviceBus.Events.Subscribe(c => Console.WriteLine("Received an event!"));
Console.WriteLine("Hit <Enter> to send a command.");
while (true)