public void UnRegister(RefreshRequiredForEnum RefreshNoLongerRequiresFor) { if (Enumerable.Any<RefreshRequiredForEnum>(this.RefreshRequiredForEntities, (Func<RefreshRequiredForEnum, bool>) (e => (e == RefreshNoLongerRequiresFor)))) { this.RefreshRequiredForEntities.Remove(RefreshNoLongerRequiresFor); } }
public void UnRegisterToRequireRefreshFor(RefreshRequiredForEnum ForceRefreshFor) { if (Enumerable.Any<RefreshRequiredForEnum>(this.RefreshMessageSentForEntities, (Func<RefreshRequiredForEnum, bool>) (e => (e == ForceRefreshFor)))) { this.RefreshMessageSentForEntities.Remove(ForceRefreshFor); } }
public void Register(RefreshRequiredForEnum RequiresRefreshFor) { if (!Enumerable.Any<RefreshRequiredForEnum>(this.RefreshRequiredForEntities, (Func<RefreshRequiredForEnum, bool>) (e => (e == RequiresRefreshFor)))) { this.RefreshRequiredForEntities.Add(RequiresRefreshFor); } }
public RequiresRefreshMessage(RefreshRequiredForEnum RequiresRefreshFor, Type SenderType) { this.RequiresRefreshFor = new List<RefreshRequiredForEnum> { RequiresRefreshFor }; this.SenderType = SenderType; }