/// <summary> /// Initialize a new instance of this class with the provided values /// </summary> /// <param name="socket"></param> /// <param name="server"></param> public ServerClient(Socket socket, NetServer server) { Socket = socket; Server = server; Guid = Guid.NewGuid(); HashCode = Guid.GetHashCode(); Commands = new ServerCommandCollection(); _SendedCommands = new Dictionary <int, NetCommand>(); Operations = new CommandOperationCollection(this); _SocketReader = new SocketReader(); _SocketReader.CommandIdReaded += new EventHandler(OnCommandIdTaken); }
/// <summary> /// Initialize a new instance of this class with the provided parent /// </summary> /// <param name="parent"></param> public CommandOperation(CommandOperationCollection parent) { Parent = parent; }