Ejemplo n.º 1
0
 /// <summary>
 ///     Add the class <see cref="LocalizationPipeline" /> inside <see cref="MiddlewareFilterAttribute" /> to the
 ///     <see cref="FilterCollection" /> for
 ///     <paramref name="mvc" />.
 /// </summary>
 /// <param name="mvc"></param>
 /// <returns>Instance of <see cref="IMvcBuilder"/>.</returns>
 public static IMvcBuilder AddMvcDefaultRouteLocalization(this IMvcBuilder mvc)
 {
     return(mvc
            .AddRequestLocalizationFilter <LocalizationPipeline>());
 }