SenseNet.Messaging.LastProcessTime.SetValue C# (CSharp) Method

SetValue() private static method

private static SetValue ( LastProcessTime instance, NotificationFrequency freq, System.DateTime value ) : void
instance LastProcessTime
freq NotificationFrequency
value System.DateTime
return void
        private static void SetValue(LastProcessTime instance, NotificationFrequency freq, DateTime value)
        {
            DateTime? dbValue = null;
            if (value >= SenseNet.ContentRepository.Storage.Data.DataProvider.Current.DateTimeMinValue)
                dbValue = value;
            switch (freq)
            {
                case NotificationFrequency.Immediately: instance.Immediately = dbValue; break;
                case NotificationFrequency.Daily: instance.Daily = dbValue; _nextDaily = null; break;
                case NotificationFrequency.Weekly: instance.Weekly = dbValue; _nextWeekly = null; break;
                case NotificationFrequency.Monthly: instance.Monthly = dbValue; _nextMonthly = null; break;
            }
        }
        private static DateTime GetValue(LastProcessTime instance, NotificationFrequency freq)