maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
docs/zh-Hans/Customizing-Application-Modules-Overriding-Services.md
|
|
|
@ -59,6 +59,7 @@ context.Services.Replace( |
|
|
|
### 示例: 重写服务方法 |
|
|
|
|
|
|
|
````csharp |
|
|
|
//[RemoteService(IsEnabled = false)] // 如果你在使用动态控制器,为了避免为应用服务创建重复的控制器, 你可以禁用远程访问. |
|
|
|
[Dependency(ReplaceServices = true)] |
|
|
|
[ExposeServices(typeof(IIdentityUserAppService), typeof(IdentityUserAppService))] |
|
|
|
public class MyIdentityUserAppService : IdentityUserAppService |
|
|
|
|