コード例 #1
0
 internal static bool ShouldLogInitialCheck(StoreObjectId itemId, COWTriggerAction operation)
 {
     Util.ThrowOnNullArgument(itemId, "itemId");
     return(CalendarLoggingHelper.ShouldLog(operation) && (itemId.ObjectType == StoreObjectType.Unknown || CalendarLoggingHelper.IsCalendarItem(itemId)));
 }
コード例 #2
0
 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));
 }