コード例 #1
0
        public static IApplicationBuilder UseServiceVersioning(
            this IApplicationBuilder builder,
            ServiceVersioningMiddlewareOptions options = null)
        {
            options = options ?? new ServiceVersioningMiddlewareOptions();

            return(builder.UseMiddleware <ServiceVersioningMiddleware>(options));
        }
 public ServiceVersioningMiddleware(RequestDelegate next, ServiceVersioningMiddlewareOptions options)
 {
     this.next    = next;
     this.options = options;
 }