diff --git a/docs/content/user-guide/en/cap/configuration.md b/docs/content/user-guide/en/cap/configuration.md index 9794c82f..00e12d0e 100644 --- a/docs/content/user-guide/en/cap/configuration.md +++ b/docs/content/user-guide/en/cap/configuration.md @@ -30,7 +30,7 @@ Subscribers use the `[CapSubscribe]` attribute to mark themselves as subscribers When you declare `[CapSubscribe]`, you can change the behavior of the subscriber by specifying the following parameters. -## [CapSubscribe] Name +### Name > string, required @@ -44,7 +44,7 @@ This name corresponds to different items in different Brokers: - In NATS, it corresponds to the Subject. - In RedisStreams, it corresponds to the Stream. -## [CapSubscribe] Group +### Group > string, optional @@ -62,7 +62,7 @@ Group corresponds to different items in different Brokers: - In NATS, it corresponds to Queue Group. - In RedisStreams, it corresponds to Consumer Group. -## [CapSubscribe] GroupConcurrent +### GroupConcurrent > byte, optional diff --git a/docs/content/user-guide/zh/cap/configuration.md b/docs/content/user-guide/zh/cap/configuration.md index 651dca29..23fed39d 100644 --- a/docs/content/user-guide/zh/cap/configuration.md +++ b/docs/content/user-guide/zh/cap/configuration.md @@ -30,7 +30,7 @@ services.AddCap(config => 当你在声明 `[CapSubscribe]` 时候,可以通过指定以下参数来改变订阅者的行为。 -## [CapSubscribe] Name +### Name > string, 必须项 @@ -44,7 +44,7 @@ services.AddCap(config => - 在 NATS 中对应 Subject。 - 在 RedisStrems 中对应 Stream. -## [CapSubscribe] Group +### Group > string, 可选项 @@ -62,7 +62,7 @@ Group 在不同的 Broker 有不同的对应项。 - 在 NATS 中对应 Queue Group。 - 在 RedisStrems 中对应 Consuemr Group. -## [CapSubscribe] GroupConcurrent +### GroupConcurrent > byte, 可选项