public LiveReloadMiddleware(Func<IDictionary<string, object>, Task> next, LiveReloadMiddlewareOptions options) : base(next, new HtmlAppenderMiddlewareOptions { Head = String.Format("<script src='//{0}:{1}/livereload.js'></script>", options.Host, options.Port), AppendToBody = false }) { if (null == options) throw new ArgumentNullException("options"); _options = options; }
public LiveReloadMiddleware(Func <IDictionary <string, object>, Task> next, LiveReloadMiddlewareOptions options) : base(next, new HtmlAppenderMiddlewareOptions { Head = String.Format("<script src='//{0}:{1}/livereload.js'></script>", options.Host, options.Port), AppendToBody = false }) { if (null == options) { throw new ArgumentNullException("options"); } _options = options; }