コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }