コード例 #1
0
        public sender_to_receiver_agent()
        {
            theListener = new ListeningAgent(theReceiver, 2113, "durable", CancellationToken.None);
            theSender   = new SendingAgent();

            theListener.Start();
            theSender.Start(new StubSenderCallback());
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: ProtocolContext.cs プロジェクト: brokenbot/jasper
        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);
        }