Skip to content

Commit b7c9a0a

Browse files
DOC-5769 enabled C#-Async client variant
1 parent 0156466 commit b7c9a0a

File tree

5 files changed

+22
-1
lines changed

5 files changed

+22
-1
lines changed

build/local_examples.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ def get_client_name_from_language_and_path(language: str, path: str) -> str:
7272
return 'Rust-Async'
7373
if 'rust-sync' in path:
7474
return 'Rust-Sync'
75+
if language == 'c#':
76+
if 'async' in path:
77+
return 'C#-Async'
78+
if 'sync' in path:
79+
return 'C#-Sync'
7580
# Default behavior for all languages (and Java fallback)
7681
return get_client_name_from_language(language)
7782

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tagManagerId = "GTM-TKZ6J9R"
4545
gitHubRepo = "https://github.com/redis/docs"
4646

4747
# Display and sort order for client examples
48-
clientsExamples = ["Python", "Node.js", "Java-Sync", "Java-Async", "Java-Reactive", "Go", "C#-Sync", "RedisVL", "PHP", "Rust-Sync", "Rust-Async"]
48+
clientsExamples = ["Python", "Node.js", "Java-Sync", "Java-Async", "Java-Reactive", "Go", "C#-Sync", "C#-Async", "RedisVL", "PHP", "Rust-Sync", "Rust-Async"]
4949
searchService = "/convai/api/search-service"
5050
ratingsService = "/docusight/api/rate"
5151

data/components/index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"modules": [],
99
"clients": [
1010
"nredisstack_sync",
11+
"nredisstack_async",
1112
"go_redis",
1213
"node_redis",
1314
"php",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"id": "nredisstack_async",
3+
"type": "client",
4+
"name": "NRedisStack_Async",
5+
"language": "C#",
6+
"label": "C#-Async",
7+
"repository": {
8+
"git_uri": "https://github.com/redis/NRedisStack"
9+
},
10+
"examples": {
11+
"git_uri": "https://github.com/redis/NRedisStack",
12+
"path": "tests/Doc/Async",
13+
"pattern": "*.cs"
14+
}
15+
}

0 commit comments

Comments
 (0)