]> git.deb.at Git - rhonda/impostor.hazel.git/commitdiff
Renamed file
authorJamJar00 <jamster.30@btinternet.com>
Fri, 9 Sep 2016 15:56:07 +0000 (16:56 +0100)
committerJamJar00 <jamster.30@btinternet.com>
Fri, 9 Sep 2016 15:56:07 +0000 (16:56 +0100)
Hazel/DataEventArgs.cs [deleted file]
Hazel/DataReceivedEventArgs.cs [new file with mode: 0644]
Hazel/Hazel.csproj

diff --git a/Hazel/DataEventArgs.cs b/Hazel/DataEventArgs.cs
deleted file mode 100644 (file)
index ef86cf9..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Hazel
-{
-    /// <summary>
-    ///     Event arguments for the <see cref="Connection.DataReceived"/> event.
-    /// </summary>
-    /// <remarks>
-    ///     <para>
-    ///         This contains information about messages received by a connection and is passed to subscribers of the 
-    ///         <see cref="Connection.DataReceived">DataEvent</see>. 
-    ///     </para>
-    ///     <include file="DocInclude/common.xml" path="docs/item[@name='Recyclable']/*" />
-    /// </remarks>
-    /// <threadsafety static="true" instance="true"/>
-    public class DataReceivedEventArgs : EventArgs, IRecyclable
-    {
-        /// <summary>
-        ///     Object pool for this event.
-        /// </summary>
-        static readonly ObjectPool<DataReceivedEventArgs> objectPool = new ObjectPool<DataReceivedEventArgs>(() => new DataReceivedEventArgs());
-
-        /// <summary>
-        ///     Returns an instance of this object from the pool.
-        /// </summary>
-        /// <returns>A new or recycled DataEventArgs object.</returns>
-        internal static DataReceivedEventArgs GetObject()
-        {
-            return objectPool.GetObject();
-        }
-
-        /// <summary>
-        ///     The bytes received from the client.
-        /// </summary>
-        public byte[] Bytes { get; private set; }
-
-        /// <summary>
-        ///     The <see cref="SendOption"/> the data was sent with.
-        /// </summary>
-        public SendOption SendOption { get; private set; }
-
-        /// <summary>
-        ///     Private constructor for object pool.
-        /// </summary>
-        DataReceivedEventArgs()
-        {
-
-        }
-
-        /// <summary>
-        ///     Sets the members of the arguments.
-        /// </summary>
-        /// <param name="bytes">The bytes received.</param>
-        /// <param name="sendOption">The send option used to send the data.</param>
-        internal void Set(byte[] bytes, SendOption sendOption)
-        {
-            this.Bytes = bytes;
-            this.SendOption = sendOption;
-        }
-
-        /// <inheritdoc />
-        public void Recycle()
-        {
-            objectPool.PutObject(this);
-        }
-    }
-}
diff --git a/Hazel/DataReceivedEventArgs.cs b/Hazel/DataReceivedEventArgs.cs
new file mode 100644 (file)
index 0000000..ef86cf9
--- /dev/null
@@ -0,0 +1,70 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Hazel
+{
+    /// <summary>
+    ///     Event arguments for the <see cref="Connection.DataReceived"/> event.
+    /// </summary>
+    /// <remarks>
+    ///     <para>
+    ///         This contains information about messages received by a connection and is passed to subscribers of the 
+    ///         <see cref="Connection.DataReceived">DataEvent</see>. 
+    ///     </para>
+    ///     <include file="DocInclude/common.xml" path="docs/item[@name='Recyclable']/*" />
+    /// </remarks>
+    /// <threadsafety static="true" instance="true"/>
+    public class DataReceivedEventArgs : EventArgs, IRecyclable
+    {
+        /// <summary>
+        ///     Object pool for this event.
+        /// </summary>
+        static readonly ObjectPool<DataReceivedEventArgs> objectPool = new ObjectPool<DataReceivedEventArgs>(() => new DataReceivedEventArgs());
+
+        /// <summary>
+        ///     Returns an instance of this object from the pool.
+        /// </summary>
+        /// <returns>A new or recycled DataEventArgs object.</returns>
+        internal static DataReceivedEventArgs GetObject()
+        {
+            return objectPool.GetObject();
+        }
+
+        /// <summary>
+        ///     The bytes received from the client.
+        /// </summary>
+        public byte[] Bytes { get; private set; }
+
+        /// <summary>
+        ///     The <see cref="SendOption"/> the data was sent with.
+        /// </summary>
+        public SendOption SendOption { get; private set; }
+
+        /// <summary>
+        ///     Private constructor for object pool.
+        /// </summary>
+        DataReceivedEventArgs()
+        {
+
+        }
+
+        /// <summary>
+        ///     Sets the members of the arguments.
+        /// </summary>
+        /// <param name="bytes">The bytes received.</param>
+        /// <param name="sendOption">The send option used to send the data.</param>
+        internal void Set(byte[] bytes, SendOption sendOption)
+        {
+            this.Bytes = bytes;
+            this.SendOption = sendOption;
+        }
+
+        /// <inheritdoc />
+        public void Recycle()
+        {
+            objectPool.PutObject(this);
+        }
+    }
+}
index 2b143af1bd7a6d839a64711f0c4643d6ef4f30f6..151a0aa1dde381f28c55ee267060e4d7fbdafcfc 100644 (file)
@@ -53,7 +53,7 @@
     <Compile Include="ConnectionEndPoint.cs" />
     <Compile Include="ConnectionListener.cs" />
     <Compile Include="ConnectionState.cs" />
-    <Compile Include="DataEventArgs.cs" />
+    <Compile Include="DataReceivedEventArgs.cs" />
     <Compile Include="DisconnectedEventArgs.cs" />
     <None Include="DocInclude\TcpClientExample.cs" />
     <None Include="DocInclude\UdpClientExample.cs" />