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

Remove Async suffix for dynamic async controller actions (both for web api and asp.net core mvc) #2514

Closed
hikalkan opened this issue Sep 15, 2017 · 0 comments
Assignees
Milestone

Comments

@hikalkan
Copy link
Member

hikalkan commented Sep 15, 2017

see #2441 (comment)

It's enabled by default. If you define an async method, like GetPersonAsync() in app service, jquery proxies will access it without Async postfix.

This can be a breaking change if have already actions with Async postfix and using them from javascript side. To disable (and return to the previous case), in PreInitialize of your module:

Configuration.Modules.AbpWebCommon().ApiProxyScripting.RemoveAsyncPostfixOnProxyGeneration = false;
@hikalkan hikalkan added this to the v3.1 milestone Sep 15, 2017
@hikalkan hikalkan changed the title Handle Async suffix for app services as controllers. Handle Async suffix for app services as controllers for aspnet core. Oct 2, 2017
@hikalkan hikalkan self-assigned this Oct 2, 2017
@hikalkan hikalkan modified the milestones: v3.1, v3.2 Oct 3, 2017
@hikalkan hikalkan changed the title Handle Async suffix for app services as controllers for aspnet core. Remove Async suffix for app services as controllers for aspnet core. Nov 15, 2017
@hikalkan hikalkan changed the title Remove Async suffix for app services as controllers for aspnet core. Remove Async suffix for dynamic async controller actions (both for web api and asp.net core mvc) Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant