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

            return(builder.UseMiddleware <LiveReloadMiddleware>(liveReloadServer));
        }
コード例 #2
0
 public LiveReloadMiddleware(RequestDelegate next, LiveReloadServer liveReloadServer)
 {
     _next             = next;
     _liveReloadServer = liveReloadServer;
 }