BusinessServiceFactory.cs 643 B

123456789101112131415161718192021222324252627282930
  1. using EVCB_OCPP.Packet.Messages.SubTypes;
  2. using EVCB_OCPP.WSServer.Dto;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace EVCB_OCPP.WSServer.Service
  9. {
  10. public interface IBusinessService
  11. {
  12. IdTagInfo Authorize(string chargeBoxId,string idTag);
  13. void NotifyFaultStatus( ErrorDetails details);
  14. }
  15. static public class BusinessServiceFactory
  16. {
  17. static public IBusinessService CreateBusinessService(string customerId, bool isLocalHandle)
  18. {
  19. return new OuterBusinessService(customerId);
  20. }
  21. }
  22. }