Skip to content

Commit 083fff6

Browse files
committed
upgrating to consume my own Mediator
1 parent 5956194 commit 083fff6

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

src/CodeChavez.Repository.Pattern.MongoDB/CodeChavez.Repository.Pattern.MongoDB.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Title>CodeChavez Repository Pattern MongoDB Library</Title>
1010
<Authors>Victor A Chavez</Authors>
1111
<Product>CodeChavez.Repository.Pattern.MongoDB</Product>
12-
<Version>9.0.0</Version>
12+
<Version>9.0.1</Version>
1313
<Copyright>2020-2025</Copyright>
1414
<Description>Has some useful extension and utilities that allow for every day development</Description>
1515
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

src/CodeChavez.Repository.Pattern.MongoDB/MongoRepository.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using CodeChavez.Common.Extensions;
22
using CodeChavez.Repository.Pattern.Extensions;
33
using CodeChavez.Repository.Pattern.Interfaces;
4-
using MediatR;
4+
using CodeChavez.M3diator.Interfaces;
55
using Microsoft.EntityFrameworkCore;
66
using MongoDB.Bson;
77
using System.Linq.Expressions;
@@ -11,13 +11,13 @@ namespace CodeChavez.Repository.Pattern.MongoDB;
1111
public class MongoRepository<TEntity> : INoSQLRepository<TEntity> where TEntity : DomainDocument
1212
{
1313
private readonly DbContext _dbContext;
14-
private readonly IMediator _mediator;
14+
private readonly IM3diator _mediator;
1515
private readonly IQueryableCacheService _cache;
1616

1717
public MongoRepository(
1818
DbContext dbContext,
1919
IQueryableCacheService cache,
20-
IMediator mediator)
20+
IM3diator mediator)
2121
{
2222
_dbContext = dbContext;
2323
_mediator = mediator;

src/CodeChavez.Repository.Pattern.Postgres/CodeChavez.Repository.Pattern.Postgres.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Title>CodeChavez Repository Pattern Postgres Library</Title>
1010
<Authors>Victor A Chavez</Authors>
1111
<Product>CodeChavez.Repository.Pattern.Postgres</Product>
12-
<Version>9.0.0</Version>
12+
<Version>9.0.1</Version>
1313
<Copyright>2020-2025</Copyright>
1414
<Description>Has some useful extension and utilities that allow for every day development</Description>
1515
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

src/CodeChavez.Repository.Pattern.Postgres/Repository.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using CodeChavez.Common.Extensions;
22
using CodeChavez.Repository.Pattern.Extensions;
33
using CodeChavez.Repository.Pattern.Interfaces;
4-
using MediatR;
4+
using CodeChavez.M3diator.Interfaces;
55
using Microsoft.EntityFrameworkCore;
66
using System.Linq.Expressions;
77

@@ -10,13 +10,13 @@ namespace CodeChavez.Repository.Pattern.Postgres;
1010
public class Repository<TEntity>(DbContext context) : IRepository<TEntity> where TEntity : DomainEntity
1111
{
1212
private readonly DbContext _dbcontext;
13-
private readonly IMediator _mediator;
13+
private readonly IM3diator _mediator;
1414
private readonly IQueryableCacheService _cache;
1515

1616
public Repository(
1717
DbContext context,
1818
IQueryableCacheService cache,
19-
IMediator mediator) : this(context)
19+
IM3diator mediator) : this(context)
2020
{
2121
_dbcontext = context;
2222
_mediator = mediator;

src/CodeChavez.Repository.Pattern/CodeChavez.Repository.Pattern.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Title>CodeChavez Repository Pattern Library</Title>
1010
<Authors>Victor A Chavez</Authors>
1111
<Product>CodeChavez.Repository.Pattern</Product>
12-
<Version>9.0.0</Version>
12+
<Version>9.0.1</Version>
1313
<Copyright>2020-2025</Copyright>
1414
<Description>Has some useful extension and utilities that allow for every day development</Description>
1515
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
@@ -26,7 +26,7 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="CodeChavez.Common" Version="9.0.1" />
29+
<PackageReference Include="CodeChavez.Common" Version="9.0.2" />
3030
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.9" />
3131
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.9" />
3232
<PackageReference Include="MongoDB.Bson" Version="3.5.0" />

src/CodeChavez.Repository.Pattern/DomainDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MediatR;
1+
using CodeChavez.M3diator.Interfaces;
22

33
namespace CodeChavez.Repository.Pattern;
44

src/CodeChavez.Repository.Pattern/DomainEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MediatR;
1+
using CodeChavez.M3diator.Interfaces;
22

33
namespace CodeChavez.Repository.Pattern;
44

src/CodeChavez.Repository.Pattern/Extensions/MediatorExtenstions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using MediatR;
1+
using CodeChavez.M3diator.Interfaces;
22
using Microsoft.EntityFrameworkCore;
33

44
namespace CodeChavez.Repository.Pattern.Extensions;
55

66
public static class MediatorExtenstions
77
{
8-
public static async Task DispatchDomainEventsAsync(this IMediator mediator, DbContext dbContext)
8+
public static async Task DispatchDomainEventsAsync(this IM3diator mediator, DbContext dbContext)
99
{
1010
var domainEntities = dbContext.ChangeTracker
1111
.Entries<DomainEntity>()
@@ -23,7 +23,7 @@ public static async Task DispatchDomainEventsAsync(this IMediator mediator, DbCo
2323
.ForEach(entity => entity.Entity.ClearDomainEvents());
2424
}
2525

26-
public static async Task DispatchDomainEntityEventsAsync<TEntity>(this IMediator mediator, TEntity entity) where TEntity : DomainEntity
26+
public static async Task DispatchDomainEntityEventsAsync<TEntity>(this IM3diator mediator, TEntity entity) where TEntity : DomainEntity
2727
{
2828
var domainEvents = entity.DomainEvents;
2929
if (domainEvents != null)
@@ -33,7 +33,7 @@ public static async Task DispatchDomainEntityEventsAsync<TEntity>(this IMediator
3333
entity.ClearDomainEvents();
3434
}
3535

36-
public static async Task DispatchDomainDocumentEventsAsync<TDocument>(this IMediator mediator, TDocument entity) where TDocument : DomainDocument
36+
public static async Task DispatchDomainDocumentEventsAsync<TDocument>(this IM3diator mediator, TDocument entity) where TDocument : DomainDocument
3737
{
3838
var domainEvents = entity.DomainEvents;
3939
if (domainEvents != null)

src/CodeChavez.Repository.Pattern/Repository.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using CodeChavez.Common.Extensions;
22
using CodeChavez.Repository.Pattern.Extensions;
33
using CodeChavez.Repository.Pattern.Interfaces;
4-
using MediatR;
4+
using CodeChavez.M3diator.Interfaces;
55
using Microsoft.EntityFrameworkCore;
66
using System.Linq.Expressions;
77

@@ -10,13 +10,13 @@ namespace CodeChavez.Repository.Pattern;
1010
public class Repository<TEntity>(DbContext context) : IRepository<TEntity> where TEntity : DomainEntity
1111
{
1212
private readonly DbContext _dbcontext = context;
13-
private readonly IMediator _mediator;
13+
private readonly IM3diator _mediator;
1414
private readonly IQueryableCacheService _cache;
1515

1616
public Repository(
1717
DbContext context,
1818
IQueryableCacheService cache,
19-
IMediator mediator) : this(context)
19+
IM3diator mediator) : this(context)
2020
{
2121
_dbcontext = context;
2222
_mediator = mediator;

0 commit comments

Comments
 (0)