BusinessServiceFactory.cs 549 B

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