/// <summary> /// Creates a new render engine and adds it to the list of all available engines. /// </summary> private IRenderEngine CreateEngine() { var engine = _renderEngineBuilder.Build(); _metadata[engine] = new EngineMetadata(); Interlocked.Increment(ref _engineCount); return(engine); }
/// <summary> /// Initializes a new instance of the <see cref="PooledRenderEngineFactory" /> class. /// </summary> /// <param name="renderEngineBuilder">The render engine builder.</param> public SingletonRenderEngineFactory(IRenderEngineBuilder renderEngineBuilder) { _renderEngine = renderEngineBuilder.Build(); }