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 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); }