Constructor BookingService
- Namespace
- UsluzionicaServer.Services
- Assembly
- UsluzionicaServer.dll
BookingService(AppDbContext, IConfiguration, NotificationService, BlockService, ConversationService, ILogger<BookingService>)
Booking modul — upravlja celim životnim ciklusom booking zahteva: Pending → Confirmed → Completed (token nagrada) Pending → Rejected Pending → Cancelled (klijent otkazuje)
3-dnevno pravilo: provider može označiti uslugu kao izvršenu tek 3 dana nakon potvrde (AcceptedAt + ExecuteAfterDays < UtcNow). Ovo sprečava prevremeno farmovanje tokena.
public BookingService(AppDbContext db, IConfiguration config, NotificationService notificationService, BlockService blockService, ConversationService conversationService, ILogger<BookingService> logger)
Parameters
dbAppDbContextconfigIConfigurationnotificationServiceNotificationServiceblockServiceBlockServiceconversationServiceConversationServiceloggerILogger<BookingService>