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 }
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); }
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"); }
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(); }
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(); }
public TestObserver(AkkaSpec spec) { _probe = spec.CreateTestProbe(); }