IFdcResourceArbitrator.cs 639 B

123456789101112131415161718
  1. using Edge.Core.Database.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Applications.FDC
  8. {
  9. public interface IFdcResourceArbitrator
  10. {
  11. Task<bool> TryReserveFuelPointAsync(int posId, int fuelPointId);
  12. Task<bool> TryUnreserveFuelPointAsync(int posId, int fuelPointId);
  13. Task<FuelSaleTransaction> TryLockFuelSaleTrxAsync(int posId, int fuelPointId, int transactionNo, int releaseToken);
  14. Task<FuelSaleTransaction> TryUnlockFuelSaleTrxAsync(int posId, int fuelPointId, int transactionNo, int releaseToken);
  15. }
  16. }