From d99a0c8a98ff15e6f531311acc2dd9db8c4e3cfb Mon Sep 17 00:00:00 2001 From: Engincan VESKE <43685404+EngincanV@users.noreply.github.com> Date: Thu, 17 Nov 2022 15:29:54 +0300 Subject: [PATCH] Update Distributed-Locking.md --- docs/en/Distributed-Locking.md | 2 ++ docs/zh-Hans/Distributed-Locking.md | 2 ++ 2 files changed, 4 insertions(+) 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` 方法进行配置.