mirror of https://github.com/abpframework/abp.git
4 changed files with 26 additions and 7 deletions
@ -1,10 +1,9 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Localization; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.Localization |
|||
{ |
|||
public interface IQueryStringCultureReplacement |
|||
{ |
|||
Task<string> ReplaceAsync(string returnUrl, RequestCulture requestCulture); |
|||
Task<string> ReplaceAsync(QueryStringCultureReplacementContext context); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,14 @@ |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Localization; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.Localization |
|||
{ |
|||
public class QueryStringCultureReplacementContext |
|||
{ |
|||
public HttpContext HttpContext { get; set; } |
|||
|
|||
public string ReturnUrl { get; set; } |
|||
|
|||
public RequestCulture RequestCulture { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue