Moving TcpReceiveEventArgs to networking project

This commit is contained in:
Chris Cameron
2018-01-10 09:46:03 -05:00
parent 4ac505f96c
commit b6661520df
2 changed files with 0 additions and 45 deletions

View File

@@ -1,44 +0,0 @@
using System;
using System.Collections.Generic;
namespace ICD.Common.Utils.EventArguments
{
public sealed class TcpReceiveEventArgs : EventArgs
{
private readonly uint m_ClientId;
private readonly string m_Data;
public uint ClientId { get { return m_ClientId; } }
public string Data { get { return m_Data; } }
/// <summary>
/// Constructor.
/// </summary>
/// <param name="clientId"></param>
/// <param name="data"></param>
public TcpReceiveEventArgs(uint clientId, IEnumerable<byte> data)
{
if (data == null)
throw new ArgumentNullException("data");
m_ClientId = clientId;
m_Data = StringUtils.ToString(data);
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="clientId"></param>
/// <param name="data"></param>
/// <param name="length"></param>
public TcpReceiveEventArgs(uint clientId, IEnumerable<byte> data, int length)
{
if (data == null)
throw new ArgumentNullException("data");
m_ClientId = clientId;
m_Data = StringUtils.ToString(data, length);
}
}
}

View File

@@ -79,7 +79,6 @@
<Compile Include="EventArguments\GenericEventArgs.cs" />
<Compile Include="EventArguments\IntEventArgs.cs" />
<Compile Include="EventArguments\StringEventArgs.cs" />
<Compile Include="EventArguments\TcpReceiveEventArgs.cs" />
<Compile Include="EventArguments\UShortEventArgs.cs" />
<Compile Include="EventArguments\XmlRecursionEventArgs.cs" />
<None Include="ObfuscationSettings.cs" />