Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Unused Snippets from Code [Correct PR] #22859

Merged
merged 1 commit into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public void MultipleInputs()

var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));

#region Snippet:MultipleInputs
Uri source1SasUriUri = new Uri("<source1 SAS URI>");
Uri source2SasUri = new Uri("<source2 SAS URI>");
Uri frenchTargetSasUri = new Uri("<french target SAS URI>");
Expand Down Expand Up @@ -92,8 +91,6 @@ public void MultipleInputs()
Console.WriteLine($" Message: {document.Error.Message}");
}
}

#endregion
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public void OperationsHistory()

var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));

#region Snippet:OperationsHistory

int operationsCount = 0;
int totalDocs = 0;
int docsCancelled = 0;
Expand Down Expand Up @@ -61,8 +59,6 @@ public void OperationsHistory()
Console.WriteLine($"Succeeded Document: {docsSucceeded}");
Console.WriteLine($"Failed Document: {docsFailed}");
Console.WriteLine($"Cancelled Documents: {docsCancelled}");

#endregion
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public void PollIndividualDocuments()

var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));

#region Snippet:PollIndividualDocuments
Uri sourceUri = new Uri("<source SAS URI>");
Uri targetUri = new Uri("<target SAS URI>");

Expand Down Expand Up @@ -61,8 +60,6 @@ public void PollIndividualDocuments()
Console.WriteLine($" Message: {document.Error.Message}");
}
}

#endregion
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ This sample demonstrates how to use Azure Blob Storage to set up the necessary r

var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));

#region Snippet:StartTranslationWithAzureBlobAsync
Uri storageEndpoint = new Uri(Environment.GetEnvironmentVariable("AZURE_STORAGE_SOURCE_ENDPOINT"));
string storageAccountName = Environment.GetEnvironmentVariable("AZURE_STORAGE_ACCOUNT_NAME");
string storageAccountKey = Environment.GetEnvironmentVariable("AZURE_STORAGE_SOURCE_KEY");
Expand Down Expand Up @@ -108,8 +107,6 @@ This sample demonstrates how to use Azure Blob Storage to set up the necessary r
Console.WriteLine($"Document ID: {document.Id}, Error Code: {document.Error.ErrorCode}, Message: {document.Error.Message}");
}
}

#endregion
}
}
}