Skip to content

Instantly share code, notes, and snippets.

@lukasz-pyrzyk
Created March 17, 2016 16:28
Show Gist options
  • Save lukasz-pyrzyk/c2b75b3622a0a9879606 to your computer and use it in GitHub Desktop.
Save lukasz-pyrzyk/c2b75b3622a0a9879606 to your computer and use it in GitHub Desktop.
using System;
namespace XGain
{
public class ErrorArgs : EventArgs
{
public ErrorArgs(Exception ex)
{
Date = DateTime.Now;
Exception = ex;
}
public DateTime Date { get; set; }
public Exception Exception { get; set; }
}
}
using System;
using XGain.Sockets;
namespace XGain
{
public class MessageArgs : EventArgs
{
public ISocket Client { get; set; }
public object UserToken { get; set; }
public byte[] RequestBytes { get; set; }
}
}
using System;
using System.Net;
namespace XGain
{
public class StartArgs : EventArgs
{
public StartArgs(ProcessingType processingType, EndPoint localEndpoint)
{
ProcessingType = processingType;
LocalEndpoint = localEndpoint;
}
public EndPoint LocalEndpoint { get; set; }
public ProcessingType ProcessingType { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment