Akka.Streams.Tests.IO.TcpHelper.Server.Server C# (CSharp) Method

Server() public method

public Server ( Akka.TestKit.TestKitBase testkit, EndPoint address = null ) : System
testkit Akka.TestKit.TestKitBase
address System.Net.EndPoint
return System
            public Server(TestKitBase testkit, EndPoint address = null)
            {
                _testkit = testkit;
                Address = address ?? TestUtils.TemporaryServerAddress();

                ServerProbe = testkit.CreateTestProbe();
                ServerRef = testkit.ActorOf(TestServerProps(Address, ServerProbe.Ref));
                ServerProbe.ExpectMsg<Tcp.Bound>();
            }