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