public void Fake() { try { sconnUser zone = new sconnUser(); zone.Fake(); Users.Add(zone); } catch (Exception e) { _logger.Error(e, e.Message); } }
public void Deserialize(byte[] buffer) { try { for (int i = 0; i < ipcDefines.AUTH_MAX_USERS; i++) { byte[] relayCfg = new byte[ipcDefines.AUTH_RECORD_SIZE]; for (int j = 0; j < ipcDefines.AUTH_RECORD_SIZE; j++) { relayCfg[j] = buffer[i * ipcDefines.AUTH_RECORD_SIZE + j]; } sconnUser relay = new sconnUser(relayCfg); relay.Id = i; Users.Add(relay); } } catch (Exception e) { _logger.Error(e, e.Message); } }