public sender_to_receiver_agent() { theListener = new ListeningAgent(theReceiver, 2113, "durable", CancellationToken.None); theSender = new SendingAgent(); theListener.Start(); theSender.Start(new StubSenderCallback()); }
public ProtocolContext() { destination = $"durable://localhost:{thePort}/incoming".ToUri(); _listener = new ListeningAgent(theReceiver, theAddress, thePort, "durable", CancellationToken.None); var messages = new[] { outgoingMessage(), outgoingMessage(), outgoingMessage(), outgoingMessage(), outgoingMessage(), outgoingMessage() }; theMessageBatch = new OutgoingMessageBatch(destination, messages); }
public ProtocolContext() { _listener = new ListeningAgent(theReceiver, thePort, "durable", CancellationToken.None); var messages = new Envelope[] { outgoingMessage(), outgoingMessage(), outgoingMessage(), outgoingMessage(), outgoingMessage(), outgoingMessage() }; theMessageBatch = new OutgoingMessageBatch(destination, messages); }