1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System.Text;
- using Team.Communicate.State;
- namespace Team.Communicate.EventArg
- {
- public class ServerEventArgs : System.EventArgs
- {
-
-
-
- public readonly string Message;
-
-
-
- public TcpClientState State;
-
-
-
- public bool IsHandled { get; set; }
- public ServerEventArgs(string msg)
- {
- Message = msg;
- IsHandled = false;
- }
- public ServerEventArgs(TcpClientState state)
- {
- State = state;
- IsHandled = false;
- Message = Encoding.UTF8.GetString(State.Memory.ToArray());
- }
- public ServerEventArgs(string msg, TcpClientState state)
- {
- Message = msg;
- State = state;
- IsHandled = false;
- }
- }
- }
|