/// <summary>
        /// Initializes a new instance of the <see cref="JsViewEngine" /> class.
        /// </summary>
        /// <param name="jsEngineInvoker">The js engine invoker.</param>
        /// <param name="options">The options.</param>
        public JsViewEngine(IJsEngineInvoker jsEngineInvoker, IOptions <JsViewEngineOptions> options)
        {
            if (jsEngineInvoker == null)
            {
                jsEngineInvoker = new JsEngineInvoker();
            }

            _jsEngineInvoker = jsEngineInvoker;
            _options         = options.Value;
        }
示例#2
0
文件: JsViewEngine.cs 项目: ado5/Spa
 /// <summary>
 /// Initializes a new instance of the <see cref="JsViewEngine" /> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public JsViewEngine(IOptions <JsViewEngineOptions> options)
 {
     _options = options.Value;
 }