public MessageChannel(MessageProtocol protocol, string address, MessageActor port)
     : this()
 {
     this.Protocol = protocol;
     this.Address  = address;
     this.Port     = (int)port;
 }
Beispiel #2
0
        public void CreateAndProcessOneMessage()
        {
            ManualResetEvent handle = new ManualResetEvent(false);

            Accumulator        accumulator = new Accumulator(1, handle);
            MessageActor <int> actor       = new MessageActor <int>(accumulator);

            actor.Send(1);

            handle.WaitOne();

            Assert.AreEqual(1, accumulator.Result);
        }
Beispiel #3
0
        public void CreateAndProcessOneMessage()
        {
            ManualResetEvent handle = new ManualResetEvent(false);

            Accumulator accumulator = new Accumulator(1, handle);
            MessageActor<int> actor = new MessageActor<int>(accumulator);

            actor.Send(1);

            handle.WaitOne();

            Assert.AreEqual(1, accumulator.Result);
        }