Skip to content

Commit 5ddb8c1

Browse files
orenmichaelyormichaeMohit-Chakraborty
authored
personalizer track2 c# sdk (#22075)
* initial c# autogenerated sdk * c# sdk with tests * Add placeholder readme files * modified readme for personalizer * changed naming, removed autogenerated csproj * Update test project to successfully run tests All tests are running and passing on the command-line and in VS * Fix the service README to adhere to rules * Add root-level README to exclusion list * Add public API file Remove snippet references from README * Use 'beta' in the version string * Add troubleshooting section to README * Add CI and tests .yml files * Move solution file to root directory of service * Add Changelog.md file * added more unit tests * added more details to readme files * added rest API reference * added required sections to readme * removed duplicate sln * moved sln to parent folder * all tests passing * naming changes * removed generated sln file from build * updated snippets and ran export api script * Remove the global suppression file * Update test assembly name in AssemblyInfo.cs * changed Apply_evaluation name and corresponding tets * fixed typo * Fix project paths in solution file * Update public API file * Remove not needed package refs * changed logs properties name to log properties * exported api * added defer activation to multi slot rank * new recording for multi slot rank test with defer activation * two public clients and name changes * added overloads for constructors and important methods, version change, uri not string for endpoint, and comments * changed date range * all tests passing * pageable and operation T * changes uri.ToString to uri.AbsoluteUri * Update code with analyzer suggestions * updated create evaluation time to utc * changed to utc time * changed method names * updates api * removed models namespace * collapsed namespace * reverted chnages in assemblyinfo Co-authored-by: orenmichaely <73134189+ormichae@users.noreply.github.com> Co-authored-by: Mohit Chakraborty <mohitc@microsoft.com>
1 parent 0fe7635 commit 5ddb8c1

File tree

198 files changed

+212655
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+212655
-0
lines changed

eng/.docsettings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ known_content_issues:
174174
- ['sdk/core/Microsoft.Azure.Core.Spatial/README.md', '#15423']
175175
- ['sdk/core/Microsoft.Azure.Core.Spatial.NewtonsoftJson/README.md', '#15423']
176176
- ['sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/README.md', '#15423']
177+
- ['sdk/personalizer/README.md','azure-sdk-tools/issues/42']
177178

178179
# .net climbs upwards. placing these to prevent assigning readmes to the wrong project
179180
package_indexing_exclusion_list:
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31410.414
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.AI.Personalizer", "Azure.AI.Personalizer\src\Azure.AI.Personalizer.csproj", "{B940AE9B-814A-4A20-9C81-3B8E5345E3B4}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.AI.Personalizer.Tests", "Azure.AI.Personalizer\tests\Azure.AI.Personalizer.Tests.csproj", "{2C71E5D1-EF84-4B8D-BDBE-F2533A0EE848}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A494FFB7-A91B-4ADD-B673-C421B6C25E75}"
11+
ProjectSection(SolutionItems) = preProject
12+
ci.yml = ci.yml
13+
Directory.Build.props = Directory.Build.props
14+
README.md = README.md
15+
tests.yml = tests.yml
16+
EndProjectSection
17+
EndProject
18+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{0F88C67F-34D2-4C68-B5BF-08A547D4CC2E}"
19+
EndProject
20+
Global
21+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
22+
Debug|Any CPU = Debug|Any CPU
23+
Release|Any CPU = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26+
{B940AE9B-814A-4A20-9C81-3B8E5345E3B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{B940AE9B-814A-4A20-9C81-3B8E5345E3B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{B940AE9B-814A-4A20-9C81-3B8E5345E3B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{B940AE9B-814A-4A20-9C81-3B8E5345E3B4}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{2C71E5D1-EF84-4B8D-BDBE-F2533A0EE848}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{2C71E5D1-EF84-4B8D-BDBE-F2533A0EE848}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{2C71E5D1-EF84-4B8D-BDBE-F2533A0EE848}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{2C71E5D1-EF84-4B8D-BDBE-F2533A0EE848}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{0F88C67F-34D2-4C68-B5BF-08A547D4CC2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{0F88C67F-34D2-4C68-B5BF-08A547D4CC2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{0F88C67F-34D2-4C68-B5BF-08A547D4CC2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
{0F88C67F-34D2-4C68-B5BF-08A547D4CC2E}.Release|Any CPU.Build.0 = Release|Any CPU
38+
EndGlobalSection
39+
GlobalSection(SolutionProperties) = preSolution
40+
HideSolutionNode = FALSE
41+
EndGlobalSection
42+
GlobalSection(ExtensibilityGlobals) = postSolution
43+
SolutionGuid = {4FFCC57A-52AB-419F-A74A-BABBE8969A35}
44+
EndGlobalSection
45+
EndGlobal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Release History
2+
3+
## 1.1.0-beta.1 (Unreleased)
4+
5+
### Added
6+
- Initial release of Azure AI [Personalizer cognitive service](https://docs.microsoft.com/azure/cognitive-services/personalizer/) SDK
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Azure Personalizer client library for .NET
2+
3+
[Azure Personalizer](https://docs.microsoft.com/azure/cognitive-services/personalizer/)
4+
is a cloud-based service that helps your applications choose the best content item to show your users. You can use the Personalizer service to determine what product to suggest to shoppers or to figure out the optimal position for an advertisement. After the content is shown to the user, your application monitors the user's reaction and reports a reward score back to the Personalizer service. This ensures continuous improvement of the machine learning model, and Personalizer's ability to select the best content item based on the contextual information it receives.
5+
6+
# Quickstart Samples
7+
[comment]: <> (TODO -- 1. change the version in the quickstart once the SDK is realeased. 2. Change multi-slot quickstart to use sdk instead of HTTP)
8+
[Personalizer Quickstart](https://docs.microsoft.com/azure/cognitive-services/personalizer/quickstart-personalizer-sdk?pivots=programming-language-csharp)
9+
10+
[Personalizer multi-slot-quickstart](https://docs.microsoft.com/azure/cognitive-services/personalizer/how-to-multi-slot?pivots=programming-language-csharp)
11+
12+
# REST API Reference
13+
[Personazlier REST API Reference](https://docs.microsoft.com/rest/api/personalizer/)
14+
15+
## Getting started
16+
17+
### Install the package
18+
19+
Install the Azure Personalizer client library for .NET with [NuGet][nuget]:
20+
21+
```Powershell
22+
dotnet add package Azure.AI.Personalizer --version 1.1.0-beta.1
23+
```
24+
25+
### Prerequisites
26+
27+
[Personalizer Prerequisites](https://docs.microsoft.com/azure/cognitive-services/personalizer/quickstart-personalizer-sdk?pivots=programming-language-csharp#prerequisites)
28+
29+
### Authenticate the client
30+
31+
[Personazlier client authentication](https://docs.microsoft.com/azure/cognitive-services/personalizer/quickstart-personalizer-sdk?pivots=programming-language-csharp#authenticate-the-client)
32+
33+
## Key concepts
34+
35+
[Personazlier Concepts](https://docs.microsoft.com/azure/cognitive-services/personalizer/terminology)
36+
37+
## Examples
38+
39+
[Personalizer Quickstart](https://docs.microsoft.com/azure/cognitive-services/personalizer/quickstart-personalizer-sdk?pivots=programming-language-csharp)
40+
41+
[Personalizer multi-slot-quickstart](https://docs.microsoft.com/azure/cognitive-services/personalizer/how-to-multi-slot?pivots=programming-language-csharp)
42+
43+
[Use Personalizer in Azure Notebook](https://docs.microsoft.com/azure/cognitive-services/personalizer/tutorial-use-azure-notebook-generate-loop-data)
44+
45+
[Add Personalizer to a .NET web app](https://docs.microsoft.com/azure/cognitive-services/personalizer/tutorial-use-personalizer-web-app)
46+
47+
[Use Personalizer in .NET chat bot](https://docs.microsoft.com/azure/cognitive-services/personalizer/tutorial-use-personalizer-chat-bot)
48+
49+
50+
## Troubleshooting
51+
52+
You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig
53+
deeper into the requests you're making against the service.
54+
55+
## Next steps
56+
57+
* Read more about the [Azure Personalizer](https://docs.microsoft.com/azure/cognitive-services/personalizer/what-is-personalizer)
58+
59+
## Contributing
60+
61+
N/A

0 commit comments

Comments
 (0)