Skip to content

Merge main into live #32019

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

Merged
merged 37 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
238380b
Bump Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest
dependabot[bot] Oct 19, 2022
f130948
Document UseCurrentRuntime
nagilson Oct 21, 2022
cfded49
.NET dependabot-bot automated PR. (#31989)
github-actions[bot] Oct 24, 2022
243f2a8
Bump Microsoft.Diagnostics.NETCore.Client
dependabot[bot] Oct 24, 2022
f3c17a1
Bump Microsoft.Extensions.Hosting in /docs/core/docker/snippets/Worker
dependabot[bot] Oct 24, 2022
7cb25c5
Bump Octokit
dependabot[bot] Oct 24, 2022
acb13aa
Bump Octokit
dependabot[bot] Oct 24, 2022
4613a28
Merge pull request #31999 from dotnet/dependabot/nuget/docs/csharp/wh…
github-actions[bot] Oct 24, 2022
9b423e4
Merge pull request #32000 from dotnet/dependabot/nuget/docs/csharp/wh…
github-actions[bot] Oct 24, 2022
814d8c9
Merge pull request #31997 from dotnet/dependabot/nuget/docs/core/dock…
github-actions[bot] Oct 24, 2022
57c1573
Merge pull request #31996 from dotnet/dependabot/nuget/docs/core/diag…
github-actions[bot] Oct 24, 2022
61a6ed1
chore: adding a code example in `bc30469` (#31799)
luizhlelis Oct 24, 2022
5526218
Bump actions/upload-artifact from 3.1.0 to 3.1.1 (#31998)
dependabot[bot] Oct 24, 2022
674fd72
Update struct.md (#31980)
DuncanSungWKim Oct 24, 2022
b313633
Add three new properties (#31967)
gewarren Oct 24, 2022
a655b21
Merge pull request #31970 from dotnet/nagilson-ucr
nagilson Oct 24, 2022
54d17d9
Revert "Tool list package id feature doc update (#31805)" (#32002)
IEvangelist Oct 24, 2022
e1eefc5
Little improvements (#31962)
gewarren Oct 24, 2022
c7e62ee
Document Publish UseCurrentRuntime
nagilson Oct 24, 2022
1cd5cd6
Merge pull request #32004 from dotnet/nagilson-publish-ucr
nagilson Oct 24, 2022
c54812d
newfoundland (#32007)
v-thepet Oct 24, 2022
663a9b6
Update package index with latest published versions (#32006)
azure-sdk Oct 24, 2022
d68d26e
Update implement-defaultazurecredential.md (#32009)
tamram Oct 24, 2022
6b5e0fe
Update MakeConst.Test.csproj
IEvangelist Oct 24, 2022
f5069b6
Merge pull request #31928 from dotnet/dependabot/nuget/docs/csharp/ro…
github-actions[bot] Oct 24, 2022
e047748
Source generation for STJ update (#31971)
gewarren Oct 24, 2022
11061fd
Bump Microsoft.CodeAnalysis.Analyzers
dependabot[bot] Oct 24, 2022
5e4adb3
Bump Microsoft.CodeAnalysis.CSharp.Workspaces
dependabot[bot] Oct 24, 2022
db27e8b
Bump Microsoft.CodeAnalysis.Analyzers
dependabot[bot] Oct 24, 2022
3c4a162
Bump Microsoft.CodeAnalysis.CSharp.Workspaces
dependabot[bot] Oct 24, 2022
df42a2a
Merge pull request #31878 from dotnet/dependabot/nuget/docs/csharp/ro…
github-actions[bot] Oct 24, 2022
ca415af
Merge pull request #31892 from dotnet/dependabot/nuget/docs/csharp/ro…
github-actions[bot] Oct 24, 2022
9099cd2
Merge pull request #31859 from dotnet/dependabot/nuget/docs/csharp/ro…
github-actions[bot] Oct 24, 2022
5643994
Bump Microsoft.CodeAnalysis.CSharp
dependabot[bot] Oct 24, 2022
e871de6
Merge pull request #31895 from dotnet/dependabot/nuget/docs/csharp/ro…
github-actions[bot] Oct 24, 2022
31f6a4a
Merge pull request #31896 from dotnet/dependabot/nuget/docs/csharp/ro…
github-actions[bot] Oct 24, 2022
efcb6c7
Rename from latest RC bits (#32013)
IEvangelist Oct 24, 2022
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ updates:
interval: "weekly"
day: "wednesday"
open-pull-requests-limit: 5
- package-ecosystem: "nuget"
directory: "/docs/core/docker/snippets/Worker" #DotNet.ContainerImage.csproj
schedule:
interval: "weekly"
day: "wednesday"
open-pull-requests-limit: 5
- package-ecosystem: "nuget"
directory: "/docs/core/extensions/snippets/caching/distributed" #distributed-apis.csproj
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

# Update build output json file
- name: Upload build results
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
with:
name: build
path: ./output.json
Expand Down
4 changes: 2 additions & 2 deletions docs/azure/includes/dotnet-all.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
| Resource Management - Storage | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Storage/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Storage-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Storage_1.0.0/sdk/storage/Azure.ResourceManager.Storage/) |
| Resource Management - Storage Cache | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageCache/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageCache-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageCache_1.0.0/sdk/storagecache/Azure.ResourceManager.StorageCache/) |
| Resource Management - Storage Pool | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StoragePool/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StoragePool-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StoragePool_1.0.0/sdk/storagepool/Azure.ResourceManager.StoragePool/) |
| Resource Management - Storage Sync | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageSync-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.0.0/sdk/storagesync/Azure.ResourceManager.StorageSync/) |
| Resource Management - Storage Sync | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.0.0)<br>NuGet [1.1.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.1.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageSync-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.0.0/sdk/storagesync/Azure.ResourceManager.StorageSync/)<br>GitHub [1.1.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.1.0-beta.1/sdk/storagesync/Azure.ResourceManager.StorageSync/) |
| Resource Management - Stream Analytics | NuGet [1.1.0](https://www.nuget.org/packages/Azure.ResourceManager.StreamAnalytics/1.1.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StreamAnalytics-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StreamAnalytics_1.1.0/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/) |
| Resource Management - Subscription | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Subscription/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Subscription-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Subscription_1.0.0/sdk/subscription/Azure.ResourceManager.Subscription/) |
| Resource Management - Support | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Support/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Support-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Support_1.0.0/sdk/support/Azure.ResourceManager.Support/) |
Expand Down Expand Up @@ -930,7 +930,7 @@
| Resource Management - Storage | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Storage/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Storage-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Storage_1.0.0/sdk/storage/Azure.ResourceManager.Storage/) |
| Resource Management - Storage Cache | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageCache/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageCache-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageCache_1.0.0/sdk/storagecache/Azure.ResourceManager.StorageCache/) |
| Resource Management - Storage Pool | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StoragePool/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StoragePool-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StoragePool_1.0.0/sdk/storagepool/Azure.ResourceManager.StoragePool/) |
| Resource Management - Storage Sync | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageSync-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.0.0/sdk/storagesync/Azure.ResourceManager.StorageSync/) |
| Resource Management - Storage Sync | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.0.0)<br>NuGet [1.1.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.1.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageSync-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.0.0/sdk/storagesync/Azure.ResourceManager.StorageSync/)<br>GitHub [1.1.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.1.0-beta.1/sdk/storagesync/Azure.ResourceManager.StorageSync/) |
| Resource Management - Stream Analytics | NuGet [1.1.0](https://www.nuget.org/packages/Azure.ResourceManager.StreamAnalytics/1.1.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StreamAnalytics-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StreamAnalytics_1.1.0/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/) |
| Resource Management - Subscription | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Subscription/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Subscription-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Subscription_1.0.0/sdk/subscription/Azure.ResourceManager.Subscription/) |
| Resource Management - Support | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Support/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Support-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Support_1.0.0/sdk/support/Azure.ResourceManager.Support/) |
Expand Down
2 changes: 1 addition & 1 deletion docs/azure/includes/dotnet-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
| Resource Management - Storage | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Storage/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Storage-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Storage_1.0.0/sdk/storage/Azure.ResourceManager.Storage/) |
| Resource Management - Storage Cache | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageCache/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageCache-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageCache_1.0.0/sdk/storagecache/Azure.ResourceManager.StorageCache/) |
| Resource Management - Storage Pool | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StoragePool/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StoragePool-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StoragePool_1.0.0/sdk/storagepool/Azure.ResourceManager.StoragePool/) |
| Resource Management - Storage Sync | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageSync-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.0.0/sdk/storagesync/Azure.ResourceManager.StorageSync/) |
| Resource Management - Storage Sync | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.0.0)<br>NuGet [1.1.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.StorageSync/1.1.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.StorageSync-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.0.0/sdk/storagesync/Azure.ResourceManager.StorageSync/)<br>GitHub [1.1.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StorageSync_1.1.0-beta.1/sdk/storagesync/Azure.ResourceManager.StorageSync/) |
| Resource Management - Stream Analytics | NuGet [1.1.0](https://www.nuget.org/packages/Azure.ResourceManager.StreamAnalytics/1.1.0) | [docs](/dotnet/api/overview/azure/ResourceManager.StreamAnalytics-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.StreamAnalytics_1.1.0/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/) |
| Resource Management - Subscription | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Subscription/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Subscription-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Subscription_1.0.0/sdk/subscription/Azure.ResourceManager.Subscription/) |
| Resource Management - Support | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.Support/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Support-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Support_1.0.0/sdk/support/Azure.ResourceManager.Support/) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Azure services are generally accessed using corresponding client classes from th

1. Include the `Azure.Identity` and `Microsoft.Extensions.Azure` namespaces with a using statement.
1. Register the Azure service using relevant helper methods.
1. Pass and instance of the `DefaultAzureCredential` object to the `UseCredential` method.
1. Pass an instance of the `DefaultAzureCredential` object to the `UseCredential` method.

An example of this is shown in the following code segment.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Diagnostics.NETCore.Client" Version="0.2.328102" />
<PackageReference Include="Microsoft.Diagnostics.NETCore.Client" Version="0.2.351802" />
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="3.0.5" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0-rc.1.22426.10" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0-rc.2.22472.3" />
<PackageReference Include="Microsoft.NET.Build.Containers" Version="0.1.8" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions docs/core/extensions/http-ratelimiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Rate limiting an HTTP handler in .NET
description: Learn how to create a client-side HTTP handler that limits the number of requests.
author: IEvangelist
ms.author: dapine
ms.date: 09/15/2022
ms.date: 10/24/2022
---

# Rate limit an HTTP handler in .NET
Expand Down Expand Up @@ -34,7 +34,7 @@ The preceding C# code:

Looking a bit closer at the `SendAsync` method, you'll see that it:

- Relies on the `RateLimiter` instance to acquire a `RateLimitLease` from the `WaitAsync`.
- Relies on the `RateLimiter` instance to acquire a `RateLimitLease` from the `AcquireAsync`.
- When the `lease.IsAcquired` property is `true`, the request is sent to the server.
- Otherwise, an <xref:System.Net.Http.HttpResponseMessage> is returned with a `429` status code, and if the `lease` contains a `RetryAfter` value, the `Retry-After` header is set to that value.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public ClientSideRateLimitedHandler(RateLimiter limiter)
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request, CancellationToken cancellationToken)
{
using RateLimitLease lease = await _rateLimiter.WaitAsync(
using RateLimitLease lease = await _rateLimiter.AcquireAsync(
permitCount: 1, cancellationToken);

if (lease.IsAcquired)
Expand Down
16 changes: 9 additions & 7 deletions docs/core/extensions/snippets/ratelimit/http/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
var options = new TokenBucketRateLimiterOptions(
tokenLimit: 8,
queueProcessingOrder: QueueProcessingOrder.OldestFirst,
queueLimit: 3,
replenishmentPeriod: TimeSpan.FromMilliseconds(1),
tokensPerPeriod: 2,
autoReplenishment: true);
var options = new TokenBucketRateLimiterOptions
{
TokenLimit = 8,
QueueProcessingOrder = QueueProcessingOrder.OldestFirst,
QueueLimit = 3,
ReplenishmentPeriod = TimeSpan.FromMilliseconds(1),
TokensPerPeriod = 2,
AutoReplenishment = true
};

// Create an HTTP client with the client-side rate limited handler.
using HttpClient client = new(
Expand Down
2 changes: 1 addition & 1 deletion docs/core/extensions/snippets/ratelimit/http/http.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Threading.RateLimiting" Version="7.0.0-preview.7.22375.6" />
<PackageReference Include="System.Threading.RateLimiting" Version="7.0.0-rc.2.22472.3" />
</ItemGroup>

</Project>
Loading