示例#1
0
        public static IApplicationBuilder UseLiveReload(this IApplicationBuilder builder, LiveReloadServer liveReloadServer)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            return(builder.UseMiddleware <LiveReloadMiddleware>(liveReloadServer));
        }
 public LiveReloadMiddleware(RequestDelegate next, LiveReloadServer liveReloadServer)
 {
     _next             = next;
     _liveReloadServer = liveReloadServer;
 }