Eventuous / dotnet-sample

Sample application using Eventuous .NET
38 stars 11 forks source link

await EnsureRoomAvailable(roomId, period, isRoomAvailable); #5

Closed jenssc closed 1 year ago

jenssc commented 1 year ago

Hi Isn't it a bug that nothing is using anything from the call to EnsureRoomAvailable ? The code will never wait for anything to get completed and there by you end up creating the event before ensuring that the room is available.

alexeyzimarev commented 1 year ago

It's definitely used https://github.com/Eventuous/dotnet-sample/blob/5f5cdb03e55012e0eefa2a2df0d43f79b1384608/Bookings.Domain/Bookings/Booking.cs#L7-L18

jenssc commented 1 year ago

Ahhh... sorry :-)

LockTar commented 1 year ago

@jenssc can this be closed?

jenssc commented 1 year ago

Sure... my bad :-)