diff --git a/docs/en/Distributed-Locking.md b/docs/en/Distributed-Locking.md index a1e653a6a6..6474949dec 100644 --- a/docs/en/Distributed-Locking.md +++ b/docs/en/Distributed-Locking.md @@ -109,10 +109,12 @@ namespace AbpDemo **Example: Set the distributed lock key prefix for the application** +```csharp Configure(options => { options.KeyPrefix = "MyApp1"; }); +``` > Write that code inside the `ConfigureServices` method of your [module class](Module-Development-Basics.md). diff --git a/docs/zh-Hans/Distributed-Locking.md b/docs/zh-Hans/Distributed-Locking.md index a570f598af..02228beaa5 100644 --- a/docs/zh-Hans/Distributed-Locking.md +++ b/docs/zh-Hans/Distributed-Locking.md @@ -109,10 +109,12 @@ namespace AbpDemo **示例: 设置应用程序的分布式锁Key前缀** +```csharp Configure(options => { options.KeyPrefix = "MyApp1"; }); +``` > 在你的[模块类](Module-Development-Basics.md)中的 `ConfigureServices` 方法进行配置.