-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
Signed-off-by: Caleb Lloyd <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,7 +119,7 @@ private class Logger : ILogger | |
|
||
public Logger(LogLevel logLevel) => _logLevel = logLevel; | ||
|
||
public IDisposable BeginScope<TState>(TState state) => NullDisposable.Instance; | ||
public IDisposable BeginScope<TState>(TState state) where TState : notnull => NullDisposable.Instance; | ||
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / check
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Windows (v2.9)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Windows (v2.9)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Windows (latest)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Windows (latest)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Windows (main)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Windows (main)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Linux (v2.9)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Linux (v2.9)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Linux (main)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Linux (main)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Linux (latest)
Check warning on line 122 in sandbox/ConsoleApp/Program.cs GitHub Actions / Linux (latest)
|
||
|
||
public bool IsEnabled(LogLevel logLevel) => _logLevel <= logLevel; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<RootNamespace>Example.ProtoMessages</RootNamespace> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Google.Protobuf" Version="3.24.4" /> | ||
<PackageReference Include="Grpc.Tools" Version="2.59.0"> | ||
<PackageReference Include="Google.Protobuf" Version="3.29.3" /> | ||
<PackageReference Include="Grpc.Tools" Version="2.69.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Protobuf Include="**\*.proto" GrpcServices="none"/> | ||
<Protobuf Include="**\*.proto" GrpcServices="none" /> | ||
</ItemGroup> | ||
|
||
</Project> |