예제 #1
0
        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);
        }
예제 #2
0
        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);
        }