コード例 #1
0
            public static string GetPostFile(Guid id, Guid secondaryToken, string fileName, Language language)
            {
                var encodedName     = HttpUtility.UrlEncode(fileName);
                var queryParameters = new NameValueCollection()
                {
                    { FileIdParameter, id.ToString() },
                    { SecondaryTokenParameter, secondaryToken.ToString() },
                    { FileNameParameter, encodedName },
                    { LanguageParameter, language.ToString() }
                };

                return(RouteHelper.BuildRoutePartsWithParameters(queryParameters, FileControllerRoute, nameof(GetPostFile)));
            }
コード例 #2
0
 public static string BuildRoute(string secret, string email) => RouteHelper.BuildRoutePartsWithParameters(new NameValueCollection {
     { EmailParameter, email }
 }, BaseRoute, secret);