/// <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; }
/// <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; }