Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 3ae0cef

Browse files
authored
Merge pull request #2105 from ReubenBond/rebond/1
Fix brace placement
2 parents 9d38de0 + 451d79f commit 3ae0cef

File tree

42 files changed

+311
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+311
-204
lines changed

src/ApiGateways/Mobile.Bff.Shopping/aggregator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
await BuildWebHost(args).RunAsync();
1+
await BuildWebHost(args).RunAsync();
22
IWebHost BuildWebHost(string[] args) =>
33
WebHost
44
.CreateDefaultBuilder(args)

src/ApiGateways/Mobile.Bff.Shopping/aggregator/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
4444

4545
app.UseSwagger().UseSwaggerUI(c =>
4646
{
47-
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Purchase BFF V1");
47+
c.SwaggerEndpoint($"{(!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty)}/swagger/v1/swagger.json", "Purchase BFF V1");
4848

4949
c.OAuthClientId("mobileshoppingaggswaggerui");
5050
c.OAuthClientSecret(string.Empty);

src/ApiGateways/Web.Bff.Shopping/aggregator/Services/BasketService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public BasketService(Basket.BasketClient basketClient, ILogger<BasketService> lo
1010
_basketClient = basketClient;
1111
_logger = logger;
1212
}
13-
13+
1414
public async Task<BasketData> GetByIdAsync(string id)
1515
{
1616
_logger.LogDebug("grpc client created, request = {@id}", id);

src/BuildingBlocks/EventBus/EventBus.Tests/InMemory_SubscriptionManager_Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void After_Creation_Should_Be_Empty()
1717
public void After_One_Event_Subscription_Should_Contain_The_Event()
1818
{
1919
var manager = new InMemoryEventBusSubscriptionsManager();
20-
manager.AddSubscription<TestIntegrationEvent,TestIntegrationEventHandler>();
20+
manager.AddSubscription<TestIntegrationEvent, TestIntegrationEventHandler>();
2121
Assert.True(manager.HasSubscriptionsForEvent<TestIntegrationEvent>());
2222
}
2323

src/BuildingBlocks/EventBus/EventBus/Events/IntegrationEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
22

33
public record IntegrationEvent
4-
{
4+
{
55
public IntegrationEvent()
66
{
77
Id = Guid.NewGuid();

src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void Publish(IntegrationEvent @event)
8080
var properties = channel.CreateBasicProperties();
8181
properties.DeliveryMode = 2; // persistent
8282

83-
_logger.LogTrace("Publishing event to RabbitMQ: {EventId}", @event.Id);
83+
_logger.LogTrace("Publishing event to RabbitMQ: {EventId}", @event.Id);
8484

8585
channel.BasicPublish(
8686
exchange: BROKER_NAME,
@@ -123,7 +123,7 @@ private void DoInternalSubscription(string eventName)
123123
{
124124
_persistentConnection.TryConnect();
125125
}
126-
126+
127127
_consumerChannel.QueueBind(queue: _queueName,
128128
exchange: BROKER_NAME,
129129
routingKey: eventName);

src/BuildingBlocks/EventBus/EventBusServiceBus/DefaultServiceBusPersisterConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public ServiceBusClient TopicClient
2727
}
2828
}
2929

30-
public ServiceBusAdministrationClient AdministrationClient =>
30+
public ServiceBusAdministrationClient AdministrationClient =>
3131
_subscriptionClient;
3232

3333
public ServiceBusClient CreateModel()

src/BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEntry.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public IntegrationEventLogEntry(IntegrationEvent @event, Guid transactionId)
77
{
88
EventId = @event.Id;
99
CreationTime = @event.CreationDate;
10-
EventTypeName = @event.GetType().FullName;
10+
EventTypeName = @event.GetType().FullName;
1111
Content = JsonSerializer.Serialize(@event, @event.GetType(), new JsonSerializerOptions
1212
{
1313
WriteIndented = true
@@ -29,7 +29,7 @@ public IntegrationEventLogEntry(IntegrationEvent @event, Guid transactionId)
2929
public string TransactionId { get; private set; }
3030

3131
public IntegrationEventLogEntry DeserializeJsonContent(Type type)
32-
{
32+
{
3333
IntegrationEvent = JsonSerializer.Deserialize(Content, type, new JsonSerializerOptions() { PropertyNameCaseInsensitive = true }) as IntegrationEvent;
3434
return this;
3535
}

0 commit comments

Comments
 (0)