Skip to content

Commit

Permalink
Merge pull request #18 from skoruba/release/2.0.0
Browse files Browse the repository at this point in the history
Release/2.0.0
  • Loading branch information
skoruba authored Sep 23, 2024
2 parents 5d313fb + 1845c25 commit b4e58d3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# 🕊️ Skoruba.AuditLogging
> Simple audit logging for .NET Core with EntityFramework Core support
**This project is ported to .NET 6.** 🚀
**This project is ported to .NET 8.** 🚀

# How to install

```ps
dotnet add package Skoruba.AuditLogging.EntityFramework --version 1.1.0
dotnet add package Skoruba.AuditLogging.EntityFramework --version 2.0.0
```

# How to use it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Version>2.0.0</Version>
<Description>Simple audit logging for .NET Core with EntityFramework Core support</Description>
<PackageProjectUrl></PackageProjectUrl>
<RepositoryUrl>https://github.com/skoruba/AuditLogging</RepositoryUrl>
Expand All @@ -14,7 +14,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.8" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Skoruba.AuditLogging.Host.Helpers.Authentication
{
public class TestAuthenticationHandler : AuthenticationHandler<TestAuthenticationOptions>
public class TestAuthenticationHandler(
IOptionsMonitor<TestAuthenticationOptions> options,
ILoggerFactory logger,
UrlEncoder encoder)
: AuthenticationHandler<TestAuthenticationOptions>(options, logger, encoder)
{
public TestAuthenticationHandler(IOptionsMonitor<TestAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock)
{
}

protected override Task<AuthenticateResult> HandleAuthenticateAsync()
{
var authenticationTicket = new AuthenticationTicket(new ClaimsPrincipal(Options.Identity),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<UserSecretsId>5cc61b65-f1d1-4aa9-be20-fbf67d81e116</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.8" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.5" />
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 4 additions & 5 deletions src/Skoruba.AuditLogging/Skoruba.AuditLogging.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Version>2.0.0</Version>
<Description>Simple audit logging for .NET Core with EntityFramework Core support</Description>
<PackageProjectUrl></PackageProjectUrl>
<RepositoryUrl>https://github.com/skoruba/AuditLogging</RepositoryUrl>
Expand All @@ -25,9 +25,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="6.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

</Project>

0 comments on commit b4e58d3

Please sign in to comment.