Browse Source

Revert ".."

This reverts commit 02c644f79a.
pull/1240/head
Espen Tønnessen Nordli 5 years ago
parent
commit
f1328f721e
6 changed files with 6 additions and 34 deletions
  1. +0
    -1
      src/BuildingBlocks/EventBus/EventBus/Abstractions/AbstractIntegrationEventHandler.cs
  2. +2
    -7
      src/BuildingBlocks/EventBus/EventBus/Events/CustomisationEvent.cs
  3. +0
    -23
      src/Services/Ordering/Ordering.API/Application/IntegrationEvents/Events/CustomisationEvent.cs
  4. +0
    -2
      src/Services/TenantCustomisations/TenantACustomisations/IntegrationEvents/EventHandling/CustomisationEventHandler.cs
  5. +0
    -1
      src/Services/TenantCustomisations/TenantACustomisations/Startup.cs
  6. +4
    -0
      src/Services/TenantCustomisations/TenantACustomisations/TenantACustomisations.csproj

src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/AbstractIntegrationEventHandler.cs → src/BuildingBlocks/EventBus/EventBus/Abstractions/AbstractIntegrationEventHandler.cs View File

@ -6,7 +6,6 @@ using System.IO;
using System.Net.Http;
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
using Microsoft.Extensions.Logging;
using Ordering.API.Application.IntegrationEvents.Events;
namespace Ordering.API.Application.IntegrationEvents.EventHandling
{

src/Services/TenantCustomisations/TenantACustomisations/IntegrationEvents/Events/CustomisationEvent.cs → src/BuildingBlocks/EventBus/EventBus/Events/CustomisationEvent.cs View File

@ -1,10 +1,8 @@
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
using Ordering.API.Application.IntegrationEvents.Events;
using System;
using System;
using System.Collections.Generic;
using System.Text;
namespace TenantACustomisations.IntegrationEvents.Events
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events
{
public class CustomisationEvent : IntegrationEvent
{
@ -13,13 +11,10 @@ namespace TenantACustomisations.IntegrationEvents.Events
TenantId = tenantId;
this.@event = @event;
eventType = @event.GetType().Name;
//TODO
userCheckoutAcceptedIntegrationEvent = (UserCheckoutAcceptedIntegrationEvent)@event;
}
public int TenantId { get; set; }
public IntegrationEvent @event { get; set; }
public String eventType { get; set; }
public UserCheckoutAcceptedIntegrationEvent userCheckoutAcceptedIntegrationEvent { get; set; }
}
}

+ 0
- 23
src/Services/Ordering/Ordering.API/Application/IntegrationEvents/Events/CustomisationEvent.cs View File

@ -1,23 +0,0 @@
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
using Ordering.API.Application.IntegrationEvents.Events;
using System;
using System.Collections.Generic;
using System.Text;
namespace Ordering.API.Application.IntegrationEvents.Events
{
public class CustomisationEvent : IntegrationEvent
{
public CustomisationEvent(int tenantId, IntegrationEvent @event)
{
TenantId = tenantId;
eventType = @event.GetType().Name;
//TODO
userCheckoutAcceptedIntegrationEvent = (UserCheckoutAcceptedIntegrationEvent)@event;
}
public int TenantId { get; set; }
public String eventType { get; set; }
public UserCheckoutAcceptedIntegrationEvent userCheckoutAcceptedIntegrationEvent { get; set; }
}
}

+ 0
- 2
src/Services/TenantCustomisations/TenantACustomisations/IntegrationEvents/EventHandling/CustomisationEventHandler.cs View File

@ -7,9 +7,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TenantACustomisations.IntegrationEvents.Events;
using TenantACustomisations.Services;
using CustomisationEvent = TenantACustomisations.IntegrationEvents.Events.CustomisationEvent;
namespace TenantACustomisations.IntegrationEvents.EventHandling
{


+ 0
- 1
src/Services/TenantCustomisations/TenantACustomisations/Startup.cs View File

@ -35,7 +35,6 @@
using global::TenantACustomisations.Infrastructure.Filters;
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
using global::TenantACustomisations.IntegrationEvents.EventHandling;
using global::TenantACustomisations.IntegrationEvents.Events;
public class Startup
{


+ 4
- 0
src/Services/TenantCustomisations/TenantACustomisations/TenantACustomisations.csproj View File

@ -42,6 +42,10 @@
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="IntegrationEvents\Events\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" />
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" />


Loading…
Cancel
Save