Skip to content

Commit c9ff332

Browse files
committed
Fix merging duplicated ConfigureAuth method
1 parent faea50f commit c9ff332

4 files changed

Lines changed: 1 addition & 18 deletions

File tree

src/Services/Basket/Basket.API/Startup.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,5 @@ private void ConfigureEventBus(IApplicationBuilder app)
237237
eventBus.Subscribe<ProductPriceChangedIntegrationEvent, ProductPriceChangedIntegrationEventHandler>();
238238
eventBus.Subscribe<OrderStartedIntegrationEvent, OrderStartedIntegrationEventHandler>();
239239
}
240-
241-
protected virtual void ConfigureAuth(IApplicationBuilder app)
242-
{
243-
app.UseAuthentication();
244-
}
245240
}
246241
}

src/Services/Location/Locations.API/Startup.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,5 @@ private void RegisterEventBus(IServiceCollection services)
190190

191191
services.AddSingleton<IEventBusSubscriptionsManager, InMemoryEventBusSubscriptionsManager>();
192192
}
193-
194-
protected virtual void ConfigureAuth(IApplicationBuilder app)
195-
{
196-
app.UseAuthentication();
197-
}
198193
}
199194
}

src/Services/Marketing/Marketing.API/Startup.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,6 @@ private Policy CreatePolicy(int retries, ILogger logger, string prefix)
256256
logger.LogTrace($"[{prefix}] Exception {exception.GetType().Name} with message ${exception.Message} detected on attempt {retry} of {retries}");
257257
}
258258
);
259-
}
260-
261-
protected virtual void ConfigureAuth(IApplicationBuilder app)
262-
{
263-
app.UseAuthentication();
264-
}
259+
}
265260
}
266261
}

test/Services/IntegrationTests/Services/Locations/LocationsTestsStartup.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
namespace IntegrationTests.Services.Locations
22
{
3-
using IntegrationTests.Middleware;
43
using Microsoft.AspNetCore.Builder;
5-
using Microsoft.AspNetCore.Hosting;
64
using Microsoft.AspNetCore.Http;
75
using Microsoft.eShopOnContainers.Services.Locations.API;
86
using Microsoft.Extensions.Configuration;

0 commit comments

Comments
 (0)