Browse Source

More random clean up

davidfowl/common-services
David Fowler 1 year ago
committed by Reuben Bond
parent
commit
7027967568
4 changed files with 5 additions and 17 deletions
  1. +0
    -6
      src/BuildingBlocks/EventBus/EventBus/Abstractions/IEventBus.cs
  2. +5
    -8
      src/Services/Ordering/Ordering.BackgroundTasks/Services/GracePeriodManagerService.cs
  3. +0
    -2
      src/Services/Services.Common/Services.Common.csproj
  4. +0
    -1
      src/Services/Webhooks/Webhooks.API/Program.cs

+ 0
- 6
src/BuildingBlocks/EventBus/EventBus/Abstractions/IEventBus.cs View File

@ -8,12 +8,6 @@ public interface IEventBus
where T : IntegrationEvent
where TH : IIntegrationEventHandler<T>;
void SubscribeDynamic<TH>(string eventName)
where TH : IDynamicIntegrationEventHandler;
void UnsubscribeDynamic<TH>(string eventName)
where TH : IDynamicIntegrationEventHandler;
void Unsubscribe<T, TH>()
where TH : IIntegrationEventHandler<T>
where T : IntegrationEvent;


+ 5
- 8
src/Services/Ordering/Ordering.BackgroundTasks/Services/GracePeriodManagerService.cs View File

@ -1,14 +1,11 @@
using Dapper;
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Ordering.BackgroundTasks.Events;
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using Dapper;
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
using Microsoft.Extensions.Options;
using Ordering.BackgroundTasks.Events;
namespace Ordering.BackgroundTasks.Services
{


+ 0
- 2
src/Services/Services.Common/Services.Common.csproj View File

@ -38,10 +38,8 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" />
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" />
<PackageReference Include="Microsoft.Web.LibraryManager.Build" />
<PackageReference Include="Polly" />
<PackageReference Include="Swashbuckle.AspNetCore" />
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" />
<PackageReference Include="System.Data.SqlClient" />
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" />
<PackageReference Include="Azure.Identity" />


+ 0
- 1
src/Services/Webhooks/Webhooks.API/Program.cs View File

@ -29,7 +29,6 @@ app.UseServiceDefaults();
app.MapGet("/", () => Results.Redirect("/swagger"));
app.MapControllers();
var eventBus = app.Services.GetRequiredService<IEventBus>();
eventBus.Subscribe<ProductPriceChangedIntegrationEvent, ProductPriceChangedIntegrationEventHandler>();


Loading…
Cancel
Save