Example #1
0
 public SocketSendBehaviorTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _behavior = new SocketSendBehavior(_client);
 }
 public SocketReceiveAsyncBehaviorTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _behavior = new SocketReceiveAsyncBehavior(_server);
 }
Example #3
0
        public void CreatePairSocket()
        {
            using var socket1 = new Pair0Socket();
            using var socket2 = new Pair0Socket();
            var url = "ipc://hello/world";

            socket1.Listen(url);
        }
Example #4
0
 public AsyncContextTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _serverAsyncContext = new AsyncContext(_server);
     _clientAsyncContext = new AsyncContext(_client);
 }