예제 #1
0
            public void BindServer()
            {
                var bindCommander = _spec.CreateTestProbe();

                bindCommander.Send(_spec.Sys.Tcp(), new Tcp.Bind(_bindHandler.Ref, _endpoint, options: BindOptions));
                bindCommander.ExpectMsg <Tcp.Bound>(); //TODO: check endpoint
            }
예제 #2
0
            public void BindServer()
            {
                var bindCommander = _spec.CreateTestProbe();

                bindCommander.Send(_spec.Sys.Tcp(), new Tcp.Bind(_bindHandler.Ref, new IPEndPoint(IPAddress.Loopback, 0), options: BindOptions));
                bindCommander.ExpectMsg <Tcp.Bound>(bound => _endpoint = (IPEndPoint)bound.LocalAddress);
            }
예제 #3
0
 public TestSetup(AkkaSpec spec, bool shouldBindServer = true)
 {
     BindOptions       = Enumerable.Empty <Inet.SocketOption>();
     ConnectOptions    = Enumerable.Empty <Inet.SocketOption>();
     _spec             = spec;
     _shouldBindServer = shouldBindServer;
     _bindHandler      = _spec.CreateTestProbe("bind-handler-probe");
 }
예제 #4
0
 public TestSetup(AkkaSpec spec, bool shouldBindServer = true)
 {
     BindOptions       = Enumerable.Empty <Inet.SocketOption>();
     ConnectOptions    = Enumerable.Empty <Inet.SocketOption>();
     _spec             = spec;
     _shouldBindServer = shouldBindServer;
     _bindHandler      = _spec.CreateTestProbe();
     _endpoint         = TestUtils.TemporaryServerAddress();
 }
예제 #5
0
 public TestSetup(AkkaSpec spec, bool shouldBindServer = true)
 {
     BindOptions =  Enumerable.Empty<Inet.SocketOption>();
     ConnectOptions = Enumerable.Empty<Inet.SocketOption>(); 
     _spec = spec;
     _shouldBindServer = shouldBindServer;
     _bindHandler = _spec.CreateTestProbe();
     _endpoint = TestUtils.TemporaryServerAddress();
 }
예제 #6
0
 public TestObserver(AkkaSpec spec)
 {
     _probe = spec.CreateTestProbe();
 }