Skip to content

Commit

Permalink
Update sample snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Han-msft committed Aug 28, 2024
1 parent da942ab commit fc0be97
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To create a large person group, you'll need `LargePersonGroupClient` object.
```C# Snippet:CreateLargePersonGroupClient
Uri endpoint = new Uri("<your endpoint>");
DefaultAzureCredential credential = new DefaultAzureCredential();
var client = new LargePersonGroupClient(endpoint, credential);
var groupClient = new LargePersonGroupClient(endpoint, credential);
```

Call `Create` to create a large person group. You need to provide the ID of the large person group you want to create with a name and optional user data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To create a large person group, you'll need `LargePersonGroupClient` object.
```C# Snippet:CreateLargePersonGroupClient
Uri endpoint = new Uri("<your endpoint>");
DefaultAzureCredential credential = new DefaultAzureCredential();
var client = new LargePersonGroupClient(endpoint, credential);
var groupClient = new LargePersonGroupClient(endpoint, credential);
```

Call `CreateAsync` to create a large person group. You need to provide the ID of the large person group you want to create with a name and optional user data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To create a large face list, you'll need `LargeFaceListClient` object.
```C# Snippet:CreateLargeFaceListClient
Uri endpoint = new Uri("<your endpoint>");
DefaultAzureCredential credential = new DefaultAzureCredential();
var client = new LargeFaceListClient(endpoint, credential);
var listClient = new LargeFaceListClient(endpoint, credential);
```

Call `Create` to create a large face list. You can specify the `name` and `userData` for the large face list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To create a large face list, you'll need `LargeFaceListClient` object.
```C# Snippet:CreateLargeFaceListClient
Uri endpoint = new Uri("<your endpoint>");
DefaultAzureCredential credential = new DefaultAzureCredential();
var client = new LargeFaceListClient(endpoint, credential);
var listClient = new LargeFaceListClient(endpoint, credential);
```

Call `CreateAsync` to create a large face list. You can specify the `name` and `userData` for the large face list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public LargePersonGroupClient CreateLargePersonGroupClient()
var endpoint = TestEnvironment.GetUrlVariable("FACE_ENDPOINT");
#endif
DefaultAzureCredential credential = new DefaultAzureCredential();
var client = new LargePersonGroupClient(endpoint, credential);
var groupClient = new LargePersonGroupClient(endpoint, credential);
#endregion
return client;
return groupClient;
}

public LargeFaceListClient CreateLargeFaceListClient()
Expand All @@ -63,9 +63,9 @@ public LargeFaceListClient CreateLargeFaceListClient()
var endpoint = TestEnvironment.GetUrlVariable("FACE_ENDPOINT");
#endif
DefaultAzureCredential credential = new DefaultAzureCredential();
var client = new LargeFaceListClient(endpoint, credential);
var listClient = new LargeFaceListClient(endpoint, credential);
#endregion
return client;
return listClient;
}

public FaceClient CreateClientWithKey()
Expand Down

0 comments on commit fc0be97

Please sign in to comment.