Browse Source

Added RabbitMq

pull/765/head
Halil ibrahim Kalkan 8 years ago
parent
commit
b47ce09486
  1. 1
      samples/MicroserviceDemo/applications/AuthServer.Host/AuthServer.Host.csproj
  2. 2
      samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs
  3. 4
      samples/MicroserviceDemo/applications/AuthServer.Host/appsettings.json
  4. 1
      samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj
  5. 2
      samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs
  6. 4
      samples/MicroserviceDemo/microservices/BloggingService.Host/appsettings.json
  7. 1
      samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityService.Host.csproj
  8. 2
      samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityServiceHostModule.cs
  9. 4
      samples/MicroserviceDemo/microservices/IdentityService.Host/appsettings.json
  10. 1
      samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj
  11. 2
      samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs
  12. 4
      samples/MicroserviceDemo/microservices/ProductService.Host/appsettings.json
  13. 5
      samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Create.cshtml.cs
  14. 4
      samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Edit.cshtml.cs

1
samples/MicroserviceDemo/applications/AuthServer.Host/AuthServer.Host.csproj

@ -22,6 +22,7 @@
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EntityFrameworkCore.SqlServer\Volo.Abp.EntityFrameworkCore.SqlServer.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EventBus.RabbitMQ\Volo.Abp.EventBus.RabbitMQ.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.Application.Contracts\Volo.Abp.Identity.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.EntityFrameworkCore\Volo.Abp.Identity.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\identityserver\src\Volo.Abp.IdentityServer.EntityFrameworkCore\Volo.Abp.IdentityServer.EntityFrameworkCore.csproj" />

2
samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs

@ -5,6 +5,7 @@ using Volo.Abp;
using Volo.Abp.Account.Web;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.EventBus.Distributed.RabbitMq;
using Volo.Abp.Autofac;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer;
@ -21,6 +22,7 @@ namespace AuthServer.Host
{
[DependsOn(
typeof(AbpAutofacModule),
typeof(AbpEventBusRabbitMqModule),
typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule),

4
samples/MicroserviceDemo/applications/AuthServer.Host/appsettings.json

@ -5,6 +5,10 @@
"Redis": {
"Configuration": "127.0.0.1"
},
"RabbitMqEventBus": {
"ClientName": "MsDemo_AuthServer",
"ExchangeName": "MsDemo"
},
"Logging": {
"LogLevel": {
"Default": "Warning"

1
samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj

@ -23,6 +23,7 @@
<ItemGroup>
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.MongoDB\Volo.Abp.MongoDB.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EventBus.RabbitMQ\Volo.Abp.EventBus.RabbitMQ.csproj" />
<ProjectReference Include="..\..\..\..\modules\blogging\src\Volo.Blogging.HttpApi\Volo.Blogging.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\blogging\src\Volo.Blogging.MongoDB\Volo.Blogging.MongoDB.csproj" />
<ProjectReference Include="..\..\..\..\modules\blogging\src\Volo.Blogging.Application\Volo.Blogging.Application.csproj" />

2
samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs

@ -8,6 +8,7 @@ using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.Autofac;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer;
using Volo.Abp.EventBus.Distributed.RabbitMq;
using Volo.Abp.Guids;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
@ -23,6 +24,7 @@ namespace BloggingService.Host
{
[DependsOn(
typeof(AbpAutofacModule),
typeof(AbpEventBusRabbitMqModule),
typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpPermissionManagementEntityFrameworkCoreModule),

4
samples/MicroserviceDemo/microservices/BloggingService.Host/appsettings.json

@ -6,6 +6,10 @@
"Redis": {
"Configuration": "127.0.0.1"
},
"RabbitMqEventBus": {
"ClientName": "MsDemo_BloggingService",
"ExchangeName": "MsDemo"
},
"Logging": {
"LogLevel": {
"Default": "Warning"

1
samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityService.Host.csproj

@ -23,6 +23,7 @@
<ItemGroup>
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EntityFrameworkCore.SqlServer\Volo.Abp.EntityFrameworkCore.SqlServer.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EventBus.RabbitMQ\Volo.Abp.EventBus.RabbitMQ.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.HttpApi\Volo.Abp.Identity.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.EntityFrameworkCore\Volo.Abp.Identity.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.Application\Volo.Abp.Identity.Application.csproj" />

2
samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityServiceHostModule.cs

@ -6,6 +6,7 @@ using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.Autofac;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer;
using Volo.Abp.EventBus.Distributed.RabbitMq;
using Volo.Abp.Identity;
using Volo.Abp.Identity.EntityFrameworkCore;
using Volo.Abp.Localization;
@ -18,6 +19,7 @@ namespace IdentityService.Host
{
[DependsOn(
typeof(AbpAutofacModule),
typeof(AbpEventBusRabbitMqModule),
typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpPermissionManagementEntityFrameworkCoreModule),

4
samples/MicroserviceDemo/microservices/IdentityService.Host/appsettings.json

@ -5,6 +5,10 @@
"Redis": {
"Configuration": "127.0.0.1"
},
"RabbitMqEventBus": {
"ClientName": "MsDemo_IdentityService",
"ExchangeName": "MsDemo"
},
"Logging": {
"LogLevel": {
"Default": "Warning"

1
samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj

@ -23,6 +23,7 @@
<ItemGroup>
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EntityFrameworkCore.SqlServer\Volo.Abp.EntityFrameworkCore.SqlServer.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EventBus.RabbitMQ\Volo.Abp.EventBus.RabbitMQ.csproj" />
<ProjectReference Include="..\..\..\..\modules\audit-logging\src\Volo.Abp.AuditLogging.EntityFrameworkCore\Volo.Abp.AuditLogging.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.EntityFrameworkCore\Volo.Abp.PermissionManagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.EntityFrameworkCore\Volo.Abp.SettingManagement.EntityFrameworkCore.csproj" />

2
samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs

@ -8,6 +8,7 @@ using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.Autofac;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer;
using Volo.Abp.EventBus.Distributed.RabbitMq;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement.EntityFrameworkCore;
@ -18,6 +19,7 @@ namespace ProductService.Host
{
[DependsOn(
typeof(AbpAutofacModule),
typeof(AbpEventBusRabbitMqModule),
typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpPermissionManagementEntityFrameworkCoreModule),

4
samples/MicroserviceDemo/microservices/ProductService.Host/appsettings.json

@ -6,6 +6,10 @@
"Redis": {
"Configuration": "127.0.0.1"
},
"RabbitMqEventBus": {
"ClientName": "MsDemo_ProductService",
"ExchangeName": "MsDemo"
},
"Logging": {
"LogLevel": {
"Default": "Warning"

5
samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Create.cshtml.cs

@ -17,11 +17,6 @@ namespace ProductManagement.Pages.ProductManagement.Products
_productAppService = productAppService;
}
public void OnGet()
{
}
public async Task<IActionResult> OnPostAsync()
{
var createProductDto = ObjectMapper.Map<ProductCreateModalView, CreateProductDto>(Product);

4
samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Edit.cshtml.cs

@ -21,10 +21,6 @@ namespace ProductManagement.Pages.ProductManagement.Products
_productAppService = productAppService;
}
public void OnGet()
{
}
public async Task<ActionResult> OnGetAsync(Guid productId)
{
var productDto = await _productAppService.GetAsync(productId);

Loading…
Cancel
Save