Browse Source

Removed obsolete folders

dotnet3-migration/dev-dotnet3
Miguel Veloso 5 years ago
parent
commit
dd5ae1b595
8 changed files with 0 additions and 121 deletions
  1. +0
    -8
      src/BuildingBlocks/CommandBus/CommandBus/CommandBus.csproj
  2. +0
    -13
      src/BuildingBlocks/CommandBus/CommandBus/ICommandBus.cs
  3. +0
    -18
      src/BuildingBlocks/CommandBus/CommandBus/IntegrationCommand.cs
  4. +0
    -7
      src/BuildingBlocks/CommandBus/CommandBusRabbitMQ/CommandBusRabbitMQ.csproj
  5. +0
    -8
      src/BuildingBlocks/EventBus/CommandBus/CommandBus.csproj
  6. +0
    -16
      src/BuildingBlocks/EventBus/CommandBus/ICommandBus.cs
  7. +0
    -16
      src/BuildingBlocks/EventBus/CommandBus/IIntegrationCommandHandler.cs
  8. +0
    -35
      src/BuildingBlocks/EventBus/CommandBus/IntegrationCommand.cs

+ 0
- 8
src/BuildingBlocks/CommandBus/CommandBus/CommandBus.csproj View File

@ -1,8 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
<RootNamespace>Microsoft.eShopOnContainers.BuildingBlocks.CommandBus</RootNamespace>
</PropertyGroup>
</Project>

+ 0
- 13
src/BuildingBlocks/CommandBus/CommandBus/ICommandBus.cs View File

@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.eShopOnContainers.BuildingBlocks.CommandBus
{
public interface ICommandBus
{
Task SendAsync<T>(T command) where T : IntegrationCommand;
}
}

+ 0
- 18
src/BuildingBlocks/CommandBus/CommandBus/IntegrationCommand.cs View File

@ -1,18 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.eShopOnContainers.BuildingBlocks.CommandBus
{
public abstract class IntegrationCommand
{
public Guid Id { get; private set; }
public DateTime Sent { get; private set; }
protected IntegrationCommand()
{
Id = Guid.NewGuid();
Sent = DateTime.UtcNow;
}
}
}

+ 0
- 7
src/BuildingBlocks/CommandBus/CommandBusRabbitMQ/CommandBusRabbitMQ.csproj View File

@ -1,7 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
</PropertyGroup>
</Project>

+ 0
- 8
src/BuildingBlocks/EventBus/CommandBus/CommandBus.csproj View File

@ -1,8 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<RootNamespace>Microsoft.eShopOnContainers.BuildingBlocks.CommandBus</RootNamespace>
</PropertyGroup>
</Project>

+ 0
- 16
src/BuildingBlocks/EventBus/CommandBus/ICommandBus.cs View File

@ -1,16 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.eShopOnContainers.BuildingBlocks.CommandBus
{
public interface ICommandBus
{
void Send<T>(string name, T data);
void Handle<TC>(string name, IIntegrationCommandHandler<TC> handler);
void Handle(string name, IIntegrationCommandHandler handler);
void Handle<TI, TC>(TI handler)
where TI : IIntegrationCommandHandler<TC>;
}
}

+ 0
- 16
src/BuildingBlocks/EventBus/CommandBus/IIntegrationCommandHandler.cs View File

@ -1,16 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.eShopOnContainers.BuildingBlocks.CommandBus
{
public interface IIntegrationCommandHandler
{
void Handle(IntegrationCommand command);
}
public interface IIntegrationCommandHandler<T> : IIntegrationCommandHandler
{
void Handle(IntegrationCommand<T> command);
}
}

+ 0
- 35
src/BuildingBlocks/EventBus/CommandBus/IntegrationCommand.cs View File

@ -1,35 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.eShopOnContainers.BuildingBlocks.CommandBus
{
public abstract class IntegrationCommand
{
public Guid Id { get; }
public DateTime Sent { get; }
public abstract object GetDataAsObject();
protected IntegrationCommand()
{
Id = Guid.NewGuid();
Sent = DateTime.UtcNow;
}
}
public class IntegrationCommand<T> : IntegrationCommand
{
public T Data { get; }
public string Name { get; }
public override object GetDataAsObject() => Data;
public IntegrationCommand(string name, T data) : base()
{
Data = data;
Name = name;
}
}
}

Loading…
Cancel
Save