Beispiel #1
0
        public override void GetCellTypeHandler(__CellIdStructReader request, ErrorCodeResponseWriter response)
        {
            var err = (int)m_memorycloud.GetCellType(request.id, out var cellType);

            response.code = err < 0 ? err : cellType;
        }
Beispiel #2
0
 public override void ContainsHandler(__CellIdStructReader request, ErrorCodeResponseWriter response)
 {
     response.code = (int)(m_memorycloud.Contains(request.id) ? TrinityErrorCode.E_CELL_FOUND : TrinityErrorCode.E_CELL_NOT_FOUND);
 }
Beispiel #3
0
 public override void RemoveCellHandler(__CellIdStructReader request, ErrorCodeResponseWriter response)
 {
     response.code = (int)m_memorycloud.RemoveCell(request.id);
 }
Beispiel #4
0
 public override void UpdateCellHandler(__CellIdStructReader request, ErrorCodeResponseWriter response)
 {
     throw new NotImplementedException();
 }