Default implementation of IModelContextPool
Inheritance: IModelContextPool
Example #1
0
        /// <summary>
        /// Creates a new <see cref="ModelContextProvider"/> and automatically assigns the instance
        /// as the current <see cref="ModelContext.Provider"/> implementation.
        /// </summary>
        public ModelContextProvider()
        {
            ModelContext.Provider = this;

            // Defaults:
            ContextPool = new ModelContextDefaultPool();
        }
Example #2
0
        /// <summary>
        /// Creates a new <see cref="ModelContextProvider"/> and automatically assigns the instance
        /// as the current <see cref="ModelContext.Provider"/> implementation.
        /// </summary>
        public ModelContextProvider()
        {
            ModelContext.Provider = this;

            // Defaults:
            ContextPool = new ModelContextDefaultPool();
        }