public static SlaveStatistics ToEntity(DT.SlaveStatistics source) { if (source == null) { return(null); } var entity = new SlaveStatistics(); ToEntity(source, entity); return(entity); }
public static void ToEntity(DT.SlaveStatistics source, SlaveStatistics target) { if ((source != null) && (target != null)) { target.StatisticsId = source.Id; target.SlaveId = source.SlaveId; target.Cores = source.Cores; target.CpuUtilization = source.CpuUtilization; target.FreeCores = source.FreeCores; target.FreeMemory = source.FreeMemory; target.Memory = source.Memory; } }
public static DT.SlaveStatistics ToDto(SlaveStatistics source) { if (source == null) { return(null); } return(new DT.SlaveStatistics { Id = source.StatisticsId, SlaveId = source.SlaveId, Cores = source.Cores, CpuUtilization = source.CpuUtilization, FreeCores = source.FreeCores, FreeMemory = source.FreeMemory, Memory = source.Memory }); }
public static SlaveStatistics ToEntity(DT.SlaveStatistics source) { if (source == null) return null; var entity = new SlaveStatistics(); ToEntity(source, entity); return entity; }
public static DT.SlaveStatistics ToDto(SlaveStatistics source) { if (source == null) return null; return new DT.SlaveStatistics { Id = source.StatisticsId, SlaveId = source.SlaveId, Cores = source.Cores, CpuUtilization = source.CpuUtilization, FreeCores = source.FreeCores, FreeMemory = source.FreeMemory, Memory = source.Memory }; }