Exemplo n.º 1
0
        /// <summary>
        /// Adds a new InstanceQueue from a builder.
        /// </summary>
        /// <param name="builder">The builder.</param>
        public void AddInstanceQueue(IInstanceQueueBuilder builder)
        {
            // Record order they were added so we can insert them into the database in the same order.
            Type entityType = builder.GetInstanceType();

            TypeOrder.Add(entityType);

            // Add the new InstanceQueue for this type.
            IInstanceQueue instanceQueue = builder.build();

            instanceQueue.ParentQueue = this;
            InstanceQueues.Add(entityType, instanceQueue);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Adds an PersistableTypeInfo object to the set by accepting an PersistableTypeInfoBuilder with which to build the PersistableTypeInfo object from.
 /// </summary>
 /// <param name="builder">The builder used to create the PersistableTypeInfo to be added.</param>
 void AddInstanceQueue(IInstanceQueueBuilder builder)
 {
     _typeQueue.AddInstanceQueue(builder);
     return;
 }