コード例 #1
0
 public SinglePageAppMiddleware(RequestDelegate next, SinglePageAppOptions options)
 {
     this.next    = next;
     this.options = options;
 }
		public static IApplicationBuilder UseSinglePageApp(this IApplicationBuilder builder, SinglePageAppOptions.Builder options)
		{
			return UseSinglePageApp(builder, options.Build());
		}
		public static IApplicationBuilder UseSinglePageApp(this IApplicationBuilder builder, SinglePageAppOptions options)
		{
			return builder.UseMiddleware<SinglePageAppMiddleware>(options);
		}
		public SinglePageAppMiddleware(RequestDelegate next, SinglePageAppOptions options)
		{
			this.next = next;
			this.options = options;
		}