public static IApplicationBuilder ConfigurePortableResolver(this IApplicationBuilder app)
 {
     ResolverContext.Create().Configure(app.ApplicationServices);
     return app;
 }