Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit 5f3c0fa

Browse files
authored
Merge pull request #5 from MaxHorstmann/master
Simplify code snippet
2 parents 1610d41 + 211bfad commit 5f3c0fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Face/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ class Program
2626

2727
static void Main(string[] args)
2828
{
29-
FaceClient faceClient = new FaceClient(
30-
new ApiKeyServiceClientCredentials(subscriptionKey),
31-
new System.Net.Http.DelegatingHandler[] { });
29+
var faceClient = new FaceClient(new ApiKeyServiceClientCredentials(subscriptionKey));
3230
faceClient.Endpoint = faceEndpoint;
3331

32+
33+
3434
Console.WriteLine("Faces being detected ...");
3535
var t1 = DetectRemoteAsync(faceClient, remoteImageUrl);
3636
var t2 = DetectLocalAsync(faceClient, localImagePath);

0 commit comments

Comments
 (0)