private AggregationContext(UserConfigurationManager manager, IAggregatedUserConfigurationReader reader, UserConfigurationManager.AggregationStats stats, ConcurrentDictionary <string, Func <SerializableDataBase> > requestedTypes) { this.manager = manager; this.reader = reader; this.stats = stats; this.requestedTypes = requestedTypes; this.createdTypes = new ConcurrentDictionary <string, SerializableDataBase>(); }
public UserConfigurationManager.IAggregationContext AttachAggregator(AggregatedUserConfigurationDescriptor aggregatorDescription) { UserConfigurationManager.AggregationContext aggregationContext = null; if (ConfigurationItemSchema.IsEnabledForConfigurationAggregation(this.mailboxSession.MailboxOwner)) { IAggregatedUserConfigurationReader reader = AggregatedUserConfiguration.GetReader(aggregatorDescription, this); aggregationContext = new UserConfigurationManager.AggregationContext(this, reader); lock (this.aggregators) { this.aggregators.Add(aggregationContext); } } return(aggregationContext); }
public AggregationContext(UserConfigurationManager manager, IAggregatedUserConfigurationReader reader) : this(manager, reader, new UserConfigurationManager.AggregationStats(), new ConcurrentDictionary <string, Func <SerializableDataBase> >()) { }