From: JamJar00 Date: Thu, 15 Sep 2016 18:12:17 +0000 (+0100) Subject: Fixed doc include code X-Git-Tag: 1.0.0~141 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=9204ed6a2e4a5b524294186615392307fb4c2f0c;p=rhonda%2Fimpostor.hazel.git Fixed doc include code --- diff --git a/Hazel/DocInclude/TcpClientExample.cs b/Hazel/DocInclude/TcpClientExample.cs index cc2bdc2..8138f6b 100644 --- a/Hazel/DocInclude/TcpClientExample.cs +++ b/Hazel/DocInclude/TcpClientExample.cs @@ -7,7 +7,7 @@ ManualResetEvent e = new ManualResetEvent(false); //Whenever we receive data print the number of bytes and how it was sent - connection.DataReceived += (object sender, DataEventArgs a) => + connection.DataReceived += (object sender, DataReceivedEventArgs a) => Console.WriteLine("Received {0} bytes via {1}!", a.Bytes.Length, a.SendOption); //When the end point disconnects from us then release the main thread and exit diff --git a/Hazel/DocInclude/UdpClientExample.cs b/Hazel/DocInclude/UdpClientExample.cs index b576f26..e77d5c5 100644 --- a/Hazel/DocInclude/UdpClientExample.cs +++ b/Hazel/DocInclude/UdpClientExample.cs @@ -7,7 +7,7 @@ ManualResetEvent e = new ManualResetEvent(false); //Whenever we receive data print the number of bytes and how it was sent - connection.DataReceived += (object sender, DataEventArgs a) => + connection.DataReceived += (object sender, DataReceivedEventArgs a) => Console.WriteLine("Received {0} bytes via {1}!", a.Bytes.Length, a.SendOption); //When the end point disconnects from us then release the main thread and exit