/// <summary> /// Modifies the healt service. /// </summary> /// <param name="healthEntity">The health heartBeatEntity.</param> public void ModifyHealthInfo(HealthEntity healthEntity) { if (!IdentitySpec.Instance.IsSatisfiedBy(healthEntity.Identification)) return; SaveHealthInfo(healthEntity); }
/// <summary> /// Saves the health info. /// </summary> /// <param name="healthEntity">The health entity.</param> private void SaveHealthInfo(HealthEntity healthEntity) { var repository = GetReopsitory(healthEntity); var serviceInfo = GetServiceInfo(healthEntity.Identification, repository); UpdateEntity(serviceInfo,healthEntity, (s => s.MemoryWorkingSet = healthEntity.MemoryWorkingSet)); Save(serviceInfo, repository, bd => bd.SetValue(be => be.MemoryWorkingSet, serviceInfo.MemoryWorkingSet)); }