Skip to content

Commit

Permalink
Remove some key
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhuang01 committed Dec 24, 2021
1 parent 1e400a8 commit 8e1be98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected async Task<PersonalizerClient> GetPersonalizerClientAsync(bool isSingl
//string endpoint = isSingleSlot ? TestEnvironment.SingleSlotEndpoint : TestEnvironment.MultiSlotEndpoint;
//string apiKey = isSingleSlot ? TestEnvironment.SingleSlotApiKey : TestEnvironment.MultiSlotApiKey;
string endpoint = isSingleSlot ? "https://autoopte2etest3.ppe.cognitiveservices.azure.com" : TestEnvironment.MultiSlotEndpoint;
string apiKey = isSingleSlot ? "f9201cb5e8924b589c392ab202c3b56f" : TestEnvironment.MultiSlotApiKey;
string apiKey = isSingleSlot ? "{personalizerApiKey}" : TestEnvironment.MultiSlotApiKey;
PersonalizerAdministrationClient adminClient = GetAdministrationClient(isSingleSlot);
if (!isSingleSlot)
{
Expand Down Expand Up @@ -73,7 +73,7 @@ protected PersonalizerAdministrationClient GetAdministrationClient(bool isSingle
//string endpoint = isSingleSlot ? TestEnvironment.SingleSlotEndpoint : TestEnvironment.MultiSlotEndpoint;
//string apiKey = isSingleSlot ? TestEnvironment.SingleSlotApiKey : TestEnvironment.MultiSlotApiKey;
string endpoint = isSingleSlot ? "https://autoopte2etest3.ppe.cognitiveservices.azure.com" : TestEnvironment.MultiSlotEndpoint;
string apiKey = isSingleSlot ? "f9201cb5e8924b589c392ab202c3b56f" : TestEnvironment.MultiSlotApiKey;
string apiKey = isSingleSlot ? "{personalizerApiKey}" : TestEnvironment.MultiSlotApiKey;
var credential = new AzureKeyCredential(apiKey);
var options = InstrumentClientOptions(new PersonalizerClientOptions());
PersonalizerAdministrationClient personalizerAdministrationClient = new PersonalizerAdministrationClient(new Uri(endpoint), credential, options);
Expand Down

0 comments on commit 8e1be98

Please sign in to comment.