Skip to content

Commit c3d9deb

Browse files
committed
2 parents 8046203 + e36e606 commit c3d9deb

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ public void UnsubscribeDynamic<TH>(string eventName)
148148
_subsManager.RemoveDynamicSubscription<TH>(eventName);
149149
}
150150

151-
152151
public void Dispose()
153152
{
154153
if (_consumerChannel != null)
@@ -202,8 +201,6 @@ private IModel CreateConsumerChannel()
202201

203202
private async Task ProcessEvent(string eventName, string message)
204203
{
205-
206-
207204
if (_subsManager.HasSubscriptionsForEvent(eventName))
208205
{
209206
using (var scope = _autofac.BeginLifetimeScope(AUTOFAC_SCOPE_NAME))

src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ public class Order
3030
// so OrderItems cannot be added from "outside the AggregateRoot" directly to the collection,
3131
// but only through the method OrderAggrergateRoot.AddOrderItem() which includes behaviour.
3232
private readonly List<OrderItem> _orderItems;
33-
3433
public IReadOnlyCollection<OrderItem> OrderItems => _orderItems;
35-
// Using List<>.AsReadOnly()
36-
// This will create a read only wrapper around the private list so is protected against "external updates".
37-
// It's much cheaper than .ToList() because it will not have to copy all items in a new collection. (Just one heap alloc for the wrapper instance)
38-
//https://msdn.microsoft.com/en-us/library/e78dcd75(v=vs.110).aspx
3934

4035
private int? _paymentMethodId;
4136

src/Services/Ordering/Ordering.Infrastructure/Repositories/BuyerRepository.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class BuyerRepository
1111
: IBuyerRepository
1212
{
1313
private readonly OrderingContext _context;
14-
1514
public IUnitOfWork UnitOfWork
1615
{
1716
get
@@ -29,16 +28,14 @@ public Buyer Add(Buyer buyer)
2928
{
3029
if (buyer.IsTransient())
3130
{
32-
//TODO: when migrating to ef core 1.1.1 change Add by AddAsync-. A bug in ef core 1.1.0 does not allow to do it https://github.com/aspnet/EntityFramework/issues/7298
3331
return _context.Buyers
3432
.Add(buyer)
3533
.Entity;
3634
}
3735
else
3836
{
3937
return buyer;
40-
}
41-
38+
}
4239
}
4340

4441
public Buyer Update(Buyer buyer)

0 commit comments

Comments
 (0)