private static AcrProfile CreateReminderProfile() { AcrProfile acrProfile = new AcrProfile(null, new AcrProfile[0]); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToOredValue), false, new StorePropertyDefinition[] { InternalSchema.ReminderIsSetInternal }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToEarlierTime), false, new StorePropertyDefinition[] { InternalSchema.ReminderDueByInternal }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToEarlierTime), false, new StorePropertyDefinition[] { InternalSchema.ReminderNextTime }); return(acrProfile); }
private static AcrProfile CreateCommonMessageProfile() { AcrProfile acrProfile = new AcrProfile(null, new AcrProfile[0]); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestPriorityAndImportance), false, new StorePropertyDefinition[] { InternalSchema.MapiPriority, InternalSchema.MapiImportance }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestSensitivity), false, new StorePropertyDefinition[] { InternalSchema.MapiSensitivity, InternalSchema.Privacy }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToMergedStringValues), false, new StorePropertyDefinition[] { InternalSchema.Categories }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValueIfServerValueNotModified), true, new StorePropertyDefinition[] { InternalSchema.MapiSubject }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValueIfServerValueNotModified), true, new StorePropertyDefinition[] { InternalSchema.AppointmentStateInternal }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToModifiedValue), false, new StorePropertyDefinition[] { InternalSchema.ConversationIndexTracking }); return(acrProfile); }
private static AcrProfile CreateFollowupFlagProfile() { AcrProfile acrProfile = new AcrProfile(null, new AcrProfile[] { AcrProfile.ReminderProfile }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToEarlierTime), false, new StorePropertyDefinition[] { InternalSchema.ReplyTime }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToOredValue), false, new StorePropertyDefinition[] { InternalSchema.IsReplyRequested }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToOredValue), false, new StorePropertyDefinition[] { InternalSchema.IsResponseRequested }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestIntValue), false, new StorePropertyDefinition[] { InternalSchema.MapiFlagStatus }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestIntValue), false, new StorePropertyDefinition[] { InternalSchema.TaskStatus }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.FlagRequest }); return(acrProfile); }
private static AcrProfile CreateMeetingMessageProfile() { AcrProfile acrProfile = new AcrProfile(null, new AcrProfile[] { AcrProfile.CommonMessageProfile }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToOredValue), false, new StorePropertyDefinition[] { InternalSchema.IsProcessed }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveResponseType), false, new StorePropertyDefinition[] { InternalSchema.MapiResponseType }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.OutlookInternalVersion }); AcrProfile.AddCalendarLoggingPropertyProfile(acrProfile); return(acrProfile); }
private static AcrProfile CreateMailboxAssociationProfile() { AcrProfile acrProfile = new AcrProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), new AcrProfile[] { AcrProfile.BlankProfile }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToIncrementHighestIntValue), false, new StorePropertyDefinition[] { InternalSchema.MailboxAssociationCurrentVersion }); return(acrProfile); }
private static AcrProfile CreateReplyForwardRelatedProfile() { AcrProfile acrProfile = new AcrProfile(null, new AcrProfile[0]); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.IconIndex }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.LastVerbExecuted }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.LastVerbExecutionTime }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.Flags }); return(acrProfile); }
private static AcrProfile CreateMasterCategoryListProfile() { AcrProfile acrProfile = AcrProfile.CreateWithGenericResolver(new AcrPropertyResolverChain(new AcrPropertyResolverChain.ResolutionFunction[] { new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToModifiedValue), new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToGreatestDependency <ExDateTime>) }, new PropertyDefinition[] { MasterCategoryListSchema.LastSavedTime }, false), new AcrProfile[0]); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { MasterCategoryListSchema.LastSavedTime }); return(acrProfile); }
private static AcrProfile CreateAppointmentProfile() { AcrProfile acrProfile = new AcrProfile(null, new AcrProfile[] { AcrProfile.CommonMessageProfile, AcrProfile.ReminderProfile }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestIntValue), false, new StorePropertyDefinition[] { InternalSchema.ReminderMinutesBeforeStartInternal }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValueIfServerValueNotModified), true, new StorePropertyDefinition[] { InternalSchema.MapiStartTime }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValueIfServerValueNotModified), true, new StorePropertyDefinition[] { InternalSchema.MapiPRStartDate }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValueIfServerValueNotModified), true, new StorePropertyDefinition[] { InternalSchema.Location }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValueIfServerValueNotModified), true, new StorePropertyDefinition[] { InternalSchema.LocationDisplayName }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValueIfServerValueNotModified), true, new StorePropertyDefinition[] { InternalSchema.LidWhere }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.OutlookInternalVersion }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.OutlookVersion }); AcrProfile.AddCalendarLoggingPropertyProfile(acrProfile); return(acrProfile); }
private static AcrProfile CreateCategoryProfile() { AcrProfile acrProfile = AcrProfile.CreateWithGenericResolver(new AcrPropertyResolverChain(new AcrPropertyResolverChain.ResolutionFunction[] { new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToModifiedValue), new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToGreatestDependency <ExDateTime>) }, new PropertyDefinition[] { CategorySchema.LastTimeUsed }, false), new AcrProfile[0]); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { CategorySchema.LastTimeUsed }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { CategorySchema.LastTimeUsedCalendar }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { CategorySchema.LastTimeUsedContacts }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { CategorySchema.LastTimeUsedJournal }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { CategorySchema.LastTimeUsedMail }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { CategorySchema.LastTimeUsedNotes }); acrProfile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToHighestValue <ExDateTime>), false, new StorePropertyDefinition[] { CategorySchema.LastTimeUsedTasks }); return(acrProfile); }
private static void AddCalendarLoggingPropertyProfile(AcrProfile profile) { profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.ItemVersion }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.ChangeList }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.CalendarLogTriggerAction }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.OriginalFolderId }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.OriginalCreationTime }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.OriginalLastModifiedTime }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.OriginalEntryId }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.ClientInfoString }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.ClientProcessName }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.ClientMachineName }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.ClientBuildVersion }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.MiddleTierProcessName }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.MiddleTierServerName }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.MiddleTierServerBuildVersion }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.MailboxServerName }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.MailboxServerBuildVersion }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.MailboxDatabaseName }); profile.AddPropertyProfile(new AcrPropertyResolverChain.ResolutionFunction(AcrHelpers.ResolveToClientValue), false, new StorePropertyDefinition[] { InternalSchema.ResponsibleUserName }); }