internal static bool ShouldLogInitialCheck(StoreObjectId itemId, COWTriggerAction operation) { Util.ThrowOnNullArgument(itemId, "itemId"); return(CalendarLoggingHelper.ShouldLog(operation) && (itemId.ObjectType == StoreObjectType.Unknown || CalendarLoggingHelper.IsCalendarItem(itemId))); }
internal static bool ShouldLog(ICoreItem item, COWTriggerAction action) { return(item != null && ((item.StoreObjectId != null || action == COWTriggerAction.Create) && (item.IsDirty || action != COWTriggerAction.Update) && CalendarLoggingHelper.ShouldLog(action)) && CalendarLoggingHelper.IsCalendarItem(item)); }