Browse Source
Merge pull request #11037 from abpframework/liangshiwei/distDemoApp
Update DistEventsDemo
pull/11038/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
6 deletions
-
test/DistEvents/DistDemoApp.Shared/DistDemoApp.Shared.csproj
-
test/DistEvents/DistDemoApp.Shared/DistDemoAppSharedModule.cs
|
|
|
@ -17,7 +17,7 @@ |
|
|
|
<ItemGroup> |
|
|
|
<ProjectReference Include="..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\framework\src\Volo.Abp.Ddd.Domain\Volo.Abp.Ddd.Domain.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\framework\src\Volo.Abp.EventBus.Boxes\Volo.Abp.EventBus.Boxes.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\framework\src\Volo.Abp.EventBus\Volo.Abp.EventBus.csproj" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ using StackExchange.Redis; |
|
|
|
using Volo.Abp.Autofac; |
|
|
|
using Volo.Abp.Domain; |
|
|
|
using Volo.Abp.Domain.Entities.Events.Distributed; |
|
|
|
using Volo.Abp.EventBus.Boxes; |
|
|
|
using Volo.Abp.EventBus; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
|
|
|
|
namespace DistDemoApp |
|
|
|
@ -13,8 +13,8 @@ namespace DistDemoApp |
|
|
|
[DependsOn( |
|
|
|
typeof(AbpAutofacModule), |
|
|
|
typeof(AbpDddDomainModule), |
|
|
|
typeof(AbpEventBusBoxesModule) |
|
|
|
)] |
|
|
|
typeof(AbpEventBusModule) |
|
|
|
)] |
|
|
|
public class DistDemoAppSharedModule : AbpModule |
|
|
|
{ |
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
@ -28,7 +28,7 @@ namespace DistDemoApp |
|
|
|
options.EtoMappings.Add<TodoItem, TodoItemEto>(); |
|
|
|
options.AutoEventSelectors.Add<TodoItem>(); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
context.Services.AddSingleton<IDistributedLockProvider>(sp => |
|
|
|
{ |
|
|
|
var connection = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]); |
|
|
|
@ -36,4 +36,4 @@ namespace DistDemoApp |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|