You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
1 month ago
|
/*
|
||
|
Sog 游戏基础库
|
||
|
2016 by zouwei
|
||
|
*/
|
||
|
|
||
|
using System;
|
||
|
|
||
|
|
||
|
namespace SogClient
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// event arguments.
|
||
|
/// </summary>
|
||
|
public class SessionEventArgs : EventArgs
|
||
|
{
|
||
|
public NetSession Session { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public MessageData Message { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The empty.
|
||
|
/// </summary>
|
||
|
public new static SessionEventArgs Empty = new SessionEventArgs();
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// event handler.
|
||
|
/// </summary>
|
||
|
public delegate void NetEventHandler(IMessageTrans messageTrans, SessionEventArgs e);
|
||
|
public class WebSessionEventArgs : EventArgs
|
||
|
{
|
||
|
public WebSession Session { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public MessageData Message { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The empty.
|
||
|
/// </summary>
|
||
|
public new static WebSessionEventArgs Empty = new WebSessionEventArgs();
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// websocket event handler.
|
||
|
/// </summary>
|
||
|
public delegate void WebNetEventHandler(IMessageTransWeb messageTrans, WebSessionEventArgs e);
|
||
|
|
||
|
}
|