diff --git a/CodeStyle.props b/CodeStyle.props index 23c52d9..b629fa1 100644 --- a/CodeStyle.props +++ b/CodeStyle.props @@ -2,7 +2,7 @@ true true - $(NoWarn);SYSLIB1006;CS1591;IL2104;IL2026;CS1570;CS1573 + $(NoWarn);SYSLIB1006;CS1591;IL2104;IL2026;CS1570;CS1573;NU1903 true \ No newline at end of file diff --git a/Source/Subscriber.cs b/Source/Subscriber.cs index ad202c0..7647ba8 100644 --- a/Source/Subscriber.cs +++ b/Source/Subscriber.cs @@ -50,7 +50,7 @@ public async Task SubscribeToChangesFor(ISession connection, TimeSpan publishInt _metrics.SubscriptionSetupTime(timer.Elapsed.TotalSeconds); _logger.Debug("Starting to read values from subscription"); - await foreach (var value in channel.Reader.ReadAllAsync(CancellationToken.None)) + await foreach (var value in channel.Reader.ReadAllAsync(CancellationToken.None).ConfigureAwait(false)) { _logger.Verbose("Received value {Value} from subscription", value); _metrics.NumberOfReceivedMonitorNotifications(1); diff --git a/Specifications/OPCUA.Specs.csproj b/Specifications/OPCUA.Specs.csproj index f362e29..b698331 100644 --- a/Specifications/OPCUA.Specs.csproj +++ b/Specifications/OPCUA.Specs.csproj @@ -12,7 +12,6 @@ -