Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abp will not automatically recognize __tenant when using [FromForm] #1614

Closed
gdlcf88 opened this issue Aug 10, 2019 · 1 comment
Closed

Abp will not automatically recognize __tenant when using [FromForm] #1614

gdlcf88 opened this issue Aug 10, 2019 · 1 comment

Comments

@gdlcf88
Copy link
Contributor

gdlcf88 commented Aug 10, 2019

        public async Task<OutputDto> DoSomethingAsync(
            [FromForm] InputDto input)
        {

        }
@maliming
Copy link
Member

If you think this is a good way to resolve tenants, you can customize your TenantResolveContributor

see:

public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<TenantResolveOptions>(options =>
{
options.TenantResolvers.Add(new QueryStringTenantResolveContributor());
options.TenantResolvers.Add(new RouteTenantResolveContributor());
options.TenantResolvers.Add(new HeaderTenantResolveContributor());
options.TenantResolvers.Add(new CookieTenantResolveContributor());
});
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants