Skip to content

Commit 1d4645a

Browse files
committed
Updated to PostSharp 6.8 RC.
1 parent fea9fc8 commit 1d4645a

File tree

44 files changed

+104
-155
lines changed

Some content is hidden

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

44 files changed

+104
-155
lines changed

Blazor/PostSharp.Samples.Blazor.AutoRetry/PostSharp.Samples.Blazor.AutoRetry.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.1" />
1010
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.1" PrivateAssets="all" />
1111
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.1" PrivateAssets="all" />
12-
<PackageReference Include="PostSharp" Version="6.8.4-preview" />
12+
<PackageReference Include="PostSharp" Version="6.8.5-rc" />
1313
<PackageReference Include="System.Net.Http.Json" Version="3.2.0" />
1414
</ItemGroup>
1515

Diagnostics/PostSharp.Samples.Logging.Audit/PostSharp.Samples.Logging.Audit.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
</ItemGroup>
6161
<ItemGroup>
6262
<PackageReference Include="PostSharp">
63-
<Version>6.8.4-preview</Version>
63+
<Version>6.8.5-rc</Version>
6464
</PackageReference>
6565
<PackageReference Include="PostSharp.Patterns.Diagnostics">
66-
<Version>6.8.4-preview</Version>
66+
<Version>6.8.5-rc-e82a62</Version>
6767
</PackageReference>
6868
<PackageReference Include="System.ValueTuple">
6969
<Version>4.5.0</Version>

Diagnostics/PostSharp.Samples.Logging.CommonLogging/PostSharp.Samples.Logging.CommonLogging.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
<Version>4.7.0</Version>
6060
</PackageReference>
6161
<PackageReference Include="PostSharp">
62-
<Version>6.8.4-preview</Version>
62+
<Version>6.8.5-rc</Version>
6363
</PackageReference>
6464
<PackageReference Include="PostSharp.Patterns.Diagnostics">
65-
<Version>6.8.4-preview</Version>
65+
<Version>6.8.5-rc-e82a62</Version>
6666
</PackageReference>
6767
<PackageReference Include="PostSharp.Patterns.Diagnostics.CommonLogging">
68-
<Version>6.8.4-preview</Version>
68+
<Version>6.8.5-rc-e82a62</Version>
6969
</PackageReference>
7070
<PackageReference Include="System.ValueTuple">
7171
<Version>4.5.0</Version>

Diagnostics/PostSharp.Samples.Logging.Console/PostSharp.Samples.Logging.Console.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
</ItemGroup>
5454
<ItemGroup>
5555
<PackageReference Include="PostSharp">
56-
<Version>6.8.4-preview</Version>
56+
<Version>6.8.5-rc</Version>
5757
</PackageReference>
5858
<PackageReference Include="PostSharp.Patterns.Diagnostics">
59-
<Version>6.8.4-preview</Version>
59+
<Version>6.8.5-rc-e82a62</Version>
6060
</PackageReference>
6161
<PackageReference Include="System.ValueTuple">
6262
<Version>4.5.0</Version>

Diagnostics/PostSharp.Samples.Logging.CustomBackend.ServiceStack/PostSharp.Samples.Logging.CustomBackend.ServiceStack.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
</ItemGroup>
5858
<ItemGroup>
5959
<PackageReference Include="PostSharp">
60-
<Version>6.8.4-preview</Version>
60+
<Version>6.8.5-rc</Version>
6161
</PackageReference>
6262
<PackageReference Include="PostSharp.Patterns.Diagnostics">
63-
<Version>6.8.4-preview</Version>
63+
<Version>6.8.5-rc-e82a62</Version>
6464
</PackageReference>
6565
<PackageReference Include="ServiceStack.Common">
6666
<Version>5.8.0</Version>

Diagnostics/PostSharp.Samples.Logging.Customization/PostSharp.Samples.Logging.Customization.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
</ItemGroup>
5959
<ItemGroup>
6060
<PackageReference Include="PostSharp">
61-
<Version>6.8.4-preview</Version>
61+
<Version>6.8.5-rc</Version>
6262
</PackageReference>
6363
<PackageReference Include="PostSharp.Patterns.Diagnostics">
64-
<Version>6.8.4-preview</Version>
64+
<Version>6.8.5-rc-e82a62</Version>
6565
</PackageReference>
6666
<PackageReference Include="System.ValueTuple">
6767
<Version>4.5.0</Version>

Diagnostics/PostSharp.Samples.Logging.ElasticStack/ClientExample/PostSharp.Samples.Logging.Distributed.Client.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
</PropertyGroup>
1010
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
1111
<ItemGroup>
12-
<PackageReference Include="PostSharp.Patterns.Diagnostics.HttpClient" Version="6.8.4-preview-58a97e" />
12+
<PackageReference Include="PostSharp.Patterns.Diagnostics.HttpClient" Version="6.8.5-rc-e82a62" />
1313
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.1" />
1414
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
15-
<PackageReference Include="PostSharp.Patterns.Diagnostics" Version="6.8.4-preview-58a97e" />
16-
<PackageReference Include="PostSharp.Patterns.Diagnostics.Serilog" Version="6.8.4-preview-58a97e" />
15+
<PackageReference Include="PostSharp.Patterns.Diagnostics" Version="6.8.5-rc-e82a62" />
16+
<PackageReference Include="PostSharp.Patterns.Diagnostics.Serilog" Version="6.8.5-rc-e82a62" />
1717
<PackageReference Include="Serilog.Sinks.ElasticSearch" Version="8.0.1" />
1818
</ItemGroup>
1919
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />

Diagnostics/PostSharp.Samples.Logging.ElasticStack/ClientExample/Program.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,20 @@ private static async Task Main()
5050
backend.Options.ContextIdGenerationStrategy = ContextIdGenerationStrategy.Hierarchical;
5151
LoggingServices.DefaultBackend = backend;
5252

53+
// Defines a filter that selects trusted requests for which the correlation protocol is enabled.
54+
// Enabling HTTP Correlation Protocol for communication with untrusted devices is a security risk.
55+
Predicate<CorrelationRequest> trustedRequests = request => request.RemoteHost == "localhost" ||
56+
request.RemoteHost == "127.0.0.1" ||
57+
request.RemoteHost == "::1";
58+
59+
// Determines which requests will be logged. We exclude requests to Logstash so that we are not logging
60+
// the logging itself.
61+
Predicate<Uri> loggedRequests = uri => uri.Port != 9200;
62+
5363
// Intercept outgoing HTTP requests and add logging to them.
5464
HttpClientLogging.Initialize(
55-
correlationProtocol: new LegacyHttpCorrelationProtocol(),
56-
requestUriPredicate: uri => uri.Port != 9200);
65+
correlationProtocol: new LegacyHttpCorrelationProtocol(trustedRequests),
66+
loggedRequests);
5767

5868

5969
using (logSource.Debug.OpenActivity(Formatted("Running the client"),

Diagnostics/PostSharp.Samples.Logging.ElasticStack/MicroserviceExample/Formatters/ActionResultFormatter.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

Diagnostics/PostSharp.Samples.Logging.ElasticStack/MicroserviceExample/Formatters/ObjectResultFormatter.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)