-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add C# and JavaScript Static Client Proxy Generation #9905
Conversation
Hi, I tried but failed with the following exception:
I did my test in a branch: https://github.com/abpframework/abp/tree/services-proxy-trying I am trying to use static c# proxies for the identity module. Actually, we will do this for all modules as a part of this PR. Can you please make it working? I also have some findings and suggestions;
|
JavaScript proxies perfectly works, great. I tried it for identity's user page: 5a0217b We should make this for all modules. I mean we will use static JS proxies for the modules, from now. |
11c2158
to
ab9cbcb
Compare
Currently, [Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IIdentityUserAppService), typeof(IdentityUserClientProxy))]
public partial class IdentityUserClientProxy : ClientProxyBase<IIdentityUserAppService>, IIdentityUserAppService
{
} and public partial class IdentityUserClientProxy
{
....
} It would be better if we move attributes ( |
I am merging this. You can address my comment (#9905 (comment)) as a separate PR. |
Resolve #9864
Usage:
abp generate-proxy -t ng
abp generate-proxy -t js -m identity -u https://localhost:44305
abp generate-proxy -t csharp -m identity -u https://localhost:44305
*.partial.cs
is a partial class of client proxy class, it uses to add custom methods.*.generate-proxy.json
is the API definition of the module, should not change it.