Skip to content

Commit

Permalink
Update dependencies and release 0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MRmlik12 committed Jan 9, 2022
1 parent 3f51463 commit a1a25c2
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 42 deletions.
11 changes: 5 additions & 6 deletions src/Vulder.SharedKernel/BaseDomainEvent.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using MediatR;

namespace Vulder.SharedKernel
namespace Vulder.SharedKernel;

public abstract class BaseDomainEvent : INotification
{
public abstract class BaseDomainEvent : INotification
{
public DateTime DateOccurred { get; protected set; } = DateTime.UtcNow;
}
}
public DateTime DateOccurred { get; protected set; } = DateTime.UtcNow;
}
23 changes: 11 additions & 12 deletions src/Vulder.SharedKernel/BaseEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Vulder.SharedKernel
namespace Vulder.SharedKernel;

public abstract class BaseEntity
{
public abstract class BaseEntity
{
[Key]
[BsonId]
[BsonGuidRepresentation(GuidRepresentation.Standard)]
public Guid Id { get; set; }
[Key]
[BsonId]
[BsonGuidRepresentation(GuidRepresentation.Standard)]
public Guid Id { get; set; }

[NotMapped]
[BsonIgnore]
public List<BaseDomainEvent> Events { get; set; } = new();
}
}
[NotMapped]
[BsonIgnore]
public List<BaseDomainEvent> Events { get; set; } = new();
}
3 changes: 2 additions & 1 deletion src/Vulder.SharedKernel/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Text;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Tokens;

Expand Down Expand Up @@ -41,4 +42,4 @@ public static void AddDefaultCorsPolicy(this IServiceCollection services)
});
});
}
}
}
6 changes: 0 additions & 6 deletions src/Vulder.SharedKernel/Interface/IAggregateRoot.cs

This file was deleted.

14 changes: 0 additions & 14 deletions src/Vulder.SharedKernel/Interface/IRepository.cs

This file was deleted.

6 changes: 3 additions & 3 deletions src/Vulder.SharedKernel/Vulder.SharedKernel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MediatR" Version="9.0.0" />
<PackageReference Include="MediatR" Version="10.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="MongoDB.Bson" Version="2.12.4" />
<PackageReference Include="MongoDB.Bson" Version="2.14.1" />
</ItemGroup>

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<PackageVersion>0.1.6</PackageVersion>
<PackageVersion>0.1.7</PackageVersion>
<Title>Vulder.SharedKernel</Title>
<Authors>MRmlik12</Authors>
<Copyright>VulderApp</Copyright>
Expand Down

0 comments on commit a1a25c2

Please sign in to comment.