Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/Ddd/Masa.Contrib.Ddd.Domain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ Install-Package Masa.Utils.Data.EntityFrameworkCore.SqlServer
builder.Services
.AddDomainEventBus(options =>
{
// options.UseEventBus(eventBusBuilder => eventBusBuilder.UseMiddleware(typeof(ValidatorMiddleware<>)))//Use in-process events and use middleware
options.UseEventBus()//Use in-process events
.UseUoW<CustomDbContext>(dbOptions => dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=idientity"))
.UseDaprEventBus<IntegrationEventLogService>()///Use cross-process events
.UseEventLog<CustomDbContext>()
.UseRepository<CustomDbContext>();//Use the EF version of Repository to achieve
options.UseDaprEventBus<IntegrationEventLogService>(options => options.UseEventLog<CustomizeDbContext>())//Use cross-process events
// .UseEventBus(eventBuilder => eventBuilder.UseMiddleware(typeof(ValidatorMiddleware<>))) // Use in-process events and use middleware
.UseEventBus() // Use in-process events
.UseUoW<CustomizeDbContext>(dbOptions => dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=idientity"))
.UseRepository<CustomizeDbContext>();//Use the EF version of Repository to achieve
})
```

Expand Down Expand Up @@ -118,4 +117,4 @@ public async Task RegisterUserSucceededHandlerAsync(RegisterUserSucceededIntegra
{
//todo
}
```
```
11 changes: 5 additions & 6 deletions src/Ddd/Masa.Contrib.Ddd.Domain/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ Install-Package Masa.Utils.Data.EntityFrameworkCore.SqlServer
builder.Services
.AddDomainEventBus(options =>
{
// options.UseEventBus(eventBusBuilder => eventBusBuilder.UseMiddleware(typeof(ValidatorMiddleware<>)))//使用进程内事件并使用中间件
options.UseEventBus()//使用进程内事件
.UseUoW<CustomDbContext>(dbOptions => dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=idientity"))
.UseDaprEventBus<IntegrationEventLogService>()///使用跨进程事件
.UseEventLog<CustomDbContext>()
.UseRepository<CustomDbContext>();//使用Repository的EF版实现
options.UseDaprEventBus<IntegrationEventLogService>(options => options.UseEventLog<CustomizeDbContext>())//使用跨进程事件
// .UseEventBus(eventBuilder => eventBuilder.UseMiddleware(typeof(ValidatorMiddleware<>))) // 使用进程内事件并使用中间件
.UseEventBus()//使用进程内事件
.UseUoW<CustomizeDbContext>(dbOptions => dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=idientity"))
.UseRepository<CustomizeDbContext>();//使用Repository的EF版实现
})
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ builder.Services
{
options.UseUoW<CatalogDbContext>(dbOptions => dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity"))
.UseEventLog<CatalogDbContext>();
)
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ builder.Services
{
options.UseUoW<CatalogDbContext>(dbOptions => dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity"))//使用工作单元,推荐使用
.UseEventLog<CatalogDbContext>();
)
});
```

Expand Down