Skip to content

Commit dc537de

Browse files
committed
resolve merge conflict
2 parents 8e33fc8 + 0a98f0c commit dc537de

File tree

66 files changed

+3207
-3288
lines changed

Some content is hidden

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

66 files changed

+3207
-3288
lines changed

.github/policies/disallow-edits.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ configuration:
1616
matchAny: true
1717
excludedFiles:
1818
- xml/Microsoft.Extensions.FileSystemGlobbing/*
19-
- xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
20-
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
19+
- xml/Microsoft.Extensions.FileSystemGlobbing.*/*
2120
- filesMatchPattern:
2221
matchAny: true
2322
pattern: xml/System.Composition/*
@@ -51,9 +50,6 @@ configuration:
5150
- filesMatchPattern:
5251
matchAny: true
5352
pattern: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
54-
- filesMatchPattern:
55-
matchAny: true
56-
pattern: xml/System.Speech/*
5753
then:
5854
- addReply:
5955
reply: >-

docfx.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"show_latex": true,
5050
"uhfHeaderId": "MSDocsHeader-DotNet",
5151
"apiPlatform": "dotnet",
52-
"ms.topic": "managed-reference",
52+
"ms.topic": "reference",
5353
"ms.service": "dotnet-api",
5454
"products": ["https://authoring-docs-microsoft.poolparty.biz/devrel/7696cda6-0510-47f6-8302-71bb5d2e28cf"],
5555
"feedback_system": "OpenSource",
@@ -146,6 +146,21 @@
146146
"langs": {
147147
"api/**.yml": ["csharp", "vb", "fsharp", "cpp"]
148148
},
149+
"ms.topic": {
150+
"api/Microsoft.Extensions**": "generated-reference",
151+
"api/Microsoft.Extensions.FileSystemGlobbing**": "reference",
152+
"api/System.Composition**": "generated-reference",
153+
"api/System.Diagnostics.EventLog.Messages**": "generated-reference",
154+
"api/System.Formats.Asn1**": "generated-reference",
155+
"api/System.Formats.Cbor**": "generated-reference",
156+
"api/System.Formats.Nrbf**": "generated-reference",
157+
"api/System.Net.ServerSentEvents**": "generated-reference",
158+
"api/System.Numerics.Tensors**": "generated-reference",
159+
"api/System.Runtime.Serialization.Schema**": "generated-reference",
160+
"api/System.Runtime.Serialization.ISerializationCodeDomSurrogateProvider.yml": "generated-reference",
161+
"api/System.Runtime.Serialization.ImportOptions.yml": "generated-reference",
162+
"api/System.Runtime.Serialization.XsdDataContractExporter.yml": "generated-reference"
163+
},
149164
"open_to_public_contributors": {
150165
"api/Microsoft.Extensions**": false,
151166
"api/System.Composition**": false,
@@ -158,8 +173,7 @@
158173
"api/System.Runtime.Serialization.Schema**": false,
159174
"api/System.Runtime.Serialization.ISerializationCodeDomSurrogateProvider.yml": false,
160175
"api/System.Runtime.Serialization.ImportOptions.yml": false,
161-
"api/System.Runtime.Serialization.XsdDataContractExporter.yml": false,
162-
"api/System.Speech**": false
176+
"api/System.Runtime.Serialization.XsdDataContractExporter.yml": false
163177
}
164178
},
165179
"dest": "_site",

snippets/csharp/Microsoft.Extensions.Configuration/ConfigurationBuilder/Overview/AppWithOptions.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0" />
12-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
11+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
12+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

snippets/csharp/System.Net.Http/SocketsHttpHandler/ConnectCallback/program.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.IO;
1+
using System;
32
using System.Net;
43
using System.Net.Http;
54
using System.Net.Sockets;
@@ -14,14 +13,17 @@ static async Task Main()
1413

1514
handler.ConnectCallback = async (ctx, ct) =>
1615
{
16+
DnsEndPoint dnsEndPoint = ctx.DnsEndPoint;
17+
IPAddress[] addresses = await Dns.GetHostAddressesAsync(dnsEndPoint.Host, dnsEndPoint.AddressFamily, ct);
1718
var s = new Socket(SocketType.Stream, ProtocolType.Tcp) { NoDelay = true };
1819
try
1920
{
2021
s.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true);
2122
s.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveTime, 5);
2223
s.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveInterval, 5);
2324
s.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveRetryCount, 5);
24-
await s.ConnectAsync(ctx.DnsEndPoint, ct);
25+
26+
await s.ConnectAsync(addresses, dnsEndPoint.Port, ct);
2527
return new NetworkStream(s, ownsSocket: true);
2628
}
2729
catch

0 commit comments

Comments
 (0)