Skip to content

Commit 8b6679d

Browse files
Merge remote-tracking branch 'origin/main' into feature/10.0
2 parents d3ea63f + a9ba38a commit 8b6679d

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

eng/dependabot/independent/Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<!-- Third-party references -->
1717
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
1818
<PackageReference Include="NJsonSchema" Version="$(NJsonSchemaVersion)" />
19-
<PackageReference Include="Swashbuckle.AspNetCore" Version="$(SwashbuckleAspNetCoreVersion)" />
2019
<PackageReference Include="Moq" Version="$(MoqVersion)" />
2120
<PackageReference Include="AWSSDK.S3" Version="$(AwsSdkS3Version)" />
2221
<PackageReference Include="AWSSDK.SecurityToken" Version="$(AwsSdkSecurityTokenVersion)" />

eng/dependabot/independent/Versions.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<!-- Third-party references -->
1515
<NewtonsoftJsonVersion>13.0.3</NewtonsoftJsonVersion>
1616
<NJsonSchemaVersion>11.0.0</NJsonSchemaVersion>
17-
<SwashbuckleAspNetCoreVersion>7.2.0</SwashbuckleAspNetCoreVersion>
1817
<AwsSdkS3Version>3.7.305.7</AwsSdkS3Version>
1918
<AwsSdkSecurityTokenVersion>3.7.300.33</AwsSdkSecurityTokenVersion>
2019

eng/dependabot/nuget.org/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<!-- Import references updated by Dependabot. -->
33
<PropertyGroup>
44
<!-- dotnet/diagnostics references -->
5-
<MicrosoftDiagnosticsMonitoringShippedVersion>9.0.607501</MicrosoftDiagnosticsMonitoringShippedVersion>
5+
<MicrosoftDiagnosticsMonitoringShippedVersion>9.0.621003</MicrosoftDiagnosticsMonitoringShippedVersion>
66
</PropertyGroup>
77
</Project>

src/Tests/Microsoft.Diagnostics.Monitoring.Tool.UnitTestCommon/EndpointInfoSourceCallback.cs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
using System;
99
using System.Collections.Generic;
1010
using System.Linq;
11-
using System.Reflection;
1211
using System.Threading;
1312
using System.Threading.Tasks;
14-
using Xunit;
1513
using Xunit.Abstractions;
1614

1715
namespace Microsoft.Diagnostics.Monitoring.TestCommon
@@ -80,7 +78,9 @@ public virtual async Task OnBeforeResumeAsync(IEndpointInfo endpointInfo, Cancel
8078
{
8179
if (endpointInfo.RuntimeVersion.Major >= 8 && !string.IsNullOrEmpty(_startupHookPath))
8280
{
83-
await ApplyStartupHookAsync(new DiagnosticsClient(endpointInfo.ProcessId), _startupHookPath, token);
81+
DiagnosticsClient client = new(endpointInfo.ProcessId);
82+
83+
await client.ApplyStartupHookAsync(_startupHookPath, token);
8484
}
8585
}
8686

@@ -106,19 +106,6 @@ public Task OnRemovedEndpointInfoAsync(IEndpointInfo info, CancellationToken tok
106106
token);
107107
}
108108

109-
private static Task ApplyStartupHookAsync(DiagnosticsClient client, string path, CancellationToken token)
110-
{
111-
// DiagnosticsClient.ApplyStartupHookAsync currently is not public
112-
MethodBase applyStartupHookAsync =
113-
typeof(DiagnosticsClient).GetMethod(
114-
"ApplyStartupHookAsync",
115-
BindingFlags.Instance | BindingFlags.NonPublic);
116-
117-
Assert.NotNull(applyStartupHookAsync);
118-
119-
return (Task)applyStartupHookAsync.Invoke(client, new object[] { path, token });
120-
}
121-
122109
private static async Task<IEndpointInfo> WaitForCompletionAsync(string operation, SemaphoreSlim semaphore, List<CompletionEntry> entries, ITestOutputHelper outputHelper, AppRunner runner, TimeSpan timeout)
123110
{
124111
CompletionEntry entry = new(runner);

0 commit comments

Comments
 (0)