Пример #1
0
        public static void RedirectTo(this IMiddlerMapActionsBuilder builder, string redirectTo, bool permanent = false)
        {
            var opts = new UrlRedirectOptions();

            opts.RedirectTo = redirectTo;
            opts.Permanent  = permanent;

            RedirectTo(builder, opts);
        }
Пример #2
0
 public static void RedirectTo(this IMiddlerMapActionsBuilder builder, UrlRedirectOptions options)
 {
     builder.AddAction <UrlRedirectAction, UrlRedirectOptions>(options);
 }