Ejemplo n.º 1
0
        /// <summary>
        /// Performs an update on a record from a network recievement
        /// </summary>
        /// <param name="buffer">Raw client buffer</param>
        private void PerformUpdate(byte[] buffer)
        {
            DataRecord record = DataRecord.FromBytes(buffer);

            this.database.Update(record);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Performs a find based on a network buffer and returns a client found
        /// </summary>
        /// <param name="buffer">Raw client buffer</param>
        /// <returns>DataRecord corresponding to memberid in network buffer</returns>
        private DataRecord PerformFind(byte[] buffer)
        {
            DataRecord record = DataRecord.FromBytes(buffer);

            return(this.database.Find(record.MemberID));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Converts and inserts a buffer into the Database
        /// </summary>
        /// <param name="buffer">Raw client buffer</param>
        private void PerformInsert(byte[] buffer)
        {
            DataRecord record = DataRecord.FromBytes(buffer);

            this.database.Insert(record);
        }