Update Customizing-Application-Modules-Overriding-Services.md

pull/4054/head
Super 5 years ago committed by GitHub
parent 4538506453
commit 915cbfb0f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,6 +59,7 @@ In most cases, you will want to change one or a few methods of the current imple
### Example: Overriding an Application Service
````csharp
//[RemoteService(IsEnabled = false)] // If you use dynamic controller feature you can disable remote service. Prevent creating duplicate controller for the application service.
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IIdentityUserAppService), typeof(IdentityUserAppService))]
public class MyIdentityUserAppService : IdentityUserAppService
@ -99,8 +100,6 @@ This class **overrides** the `CreateAsync` method of the `IdentityUserAppService
You could completely **re-write** the entire business logic for a user creation without calling the base method.
> It's better to add the attribute `[RemoteService(IsEnabled = false)]` if the [Auto API Controllers](API/Auto-API-Controllers.md) is enabled, otherwise the extra APIs for MyIdentityUser will be generated.
### Example: Overriding a Domain Service
````csharp

Loading…
Cancel
Save