Exemple #1
0
        public NetSocketTests()
        {
            Server.OnConnections()
            .Subscribe(x => {
                x.AddInto(Clients);
                x.BeginSend(x.BeginReceive());
            })
            .AddInto(Disposes);

            Server.ListenAsync(Port).ConfigureAwait(false);
        }