Example #1
0
 public PointsOfSaleController(IBusPublisher busPublisher, IPointsOfSaleService pointsOfSaleService, IPointOfSaleAuthorizationLoader authLoader, IAccountingGroupAuthorizationLoader accGroupAuthLoader, IIdentityService idService) : base(busPublisher)
 {
     _pointsOfSaleService = pointsOfSaleService ?? throw new ArgumentNullException(nameof(pointsOfSaleService));
     _authLoader          = authLoader ?? throw new ArgumentNullException(nameof(authLoader));
     _accGroupAuthLoader  = accGroupAuthLoader ?? throw new ArgumentNullException(nameof(accGroupAuthLoader));
     _idService           = idService ?? throw new ArgumentNullException(nameof(idService));
 }
Example #2
0
 public SalesController(IBusPublisher busPublisher, IAccountingService accountingService, IPointsOfSaleService pointsOfSaleService, IPosAgAuthorizationLoader posAgAuthorizationLoader, IAccountingGroupAuthorizationLoader agAuthLoader) : base(busPublisher)
 {
     _accountingService        = accountingService ?? throw new ArgumentNullException(nameof(accountingService));
     _pointsOfSaleService      = pointsOfSaleService ?? throw new ArgumentNullException(nameof(pointsOfSaleService));
     _posAgAuthorizationLoader = posAgAuthorizationLoader;
     _agAuthLoader             = agAuthLoader;
 }
Example #3
0
 public ProcessSwipeHandler(IProductsService prodSvc, IPointsOfSaleService posSvc, IOffersService offSvc, IIdentityService idSvc, IAccountingGroupsService agSvc, IBusPublisher busPublisher, IAccountingService acSvc)
 {
     _prodSvc      = prodSvc;
     _posSvc       = posSvc;
     _offSvc       = offSvc;
     _idSvc        = idSvc;
     _agSvc        = agSvc;
     _busPublisher = busPublisher;
     _acSvc        = acSvc;
 }
Example #4
0
        public MqttListenerService(IManagedMqttClient client, IManagedMqttClientOptions options, IConfiguration configuration, IServiceId serviceId,
                                   ILogger <MqttListenerService> logger, IPointsOfSaleService posService, IServiceProvider serviceProvider, IPosTopicClassifier posTopicClassifier)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }
            if (serviceId == null)
            {
                throw new ArgumentNullException(nameof(serviceId));
            }

            _client             = client ?? throw new ArgumentNullException(nameof(client));
            _options            = options ?? throw new ArgumentNullException(nameof(options));
            _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
            _posService         = posService ?? throw new ArgumentNullException(nameof(posService));
            _posTopicClassifier = posTopicClassifier ?? throw new ArgumentNullException(nameof(posTopicClassifier));

            _client.UseApplicationMessageReceivedHandler(OnMqttMessageReceived);
            _client.UseConnectedHandler(args => OnConnectedHandler(args));
            _client.UseDisconnectedHandler(args => OnDisconnectedHandler(args));

            _messageHandlers = serviceProvider.GetServices <IMqttMessageHandler>().ToArray();
        }
 public PosExistsRequirementHandler(IPointsOfSaleService posService)
 {
     _posService = posService;
 }
 public PointOfSaleApiKeyAuthenticator(IPasswordHasher <AuthenticationMeansWithValue> passwordHasher, IBusPublisher busPublisher, IPointsOfSaleService posService, IIdentityService identityService) : base(passwordHasher)
 {
     _busPublisher    = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _posService      = posService ?? throw new ArgumentNullException(nameof(posService));
     _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
 }
Example #7
0
 public AdvancedUserRequirementHandler(IAccountingGroupsService accountingGroupsService, IPointsOfSaleService pointsOfSaleService)
 {
     _accountingGroupsService = accountingGroupsService ?? throw new ArgumentNullException(nameof(accountingGroupsService));
     _pointsOfSaleService     = pointsOfSaleService ?? throw new ArgumentNullException(nameof(pointsOfSaleService));
 }
Example #8
0
 public PosFeatureVerifier(IPointsOfSaleService service)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
 public PointOfSaleVerifier(IPointsOfSaleService service)
     : base("point_of_sale", "point of sale")
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
Example #10
0
 public PosAgAuthorizationLoader(IPointsOfSaleService posService, IAccountingGroupAuthorizationLoader agAuthLoader)
 {
     _posService   = posService ?? throw new ArgumentNullException(nameof(posService));
     _agAuthLoader = agAuthLoader ?? throw new ArgumentNullException(nameof(agAuthLoader));
 }
 public DeleteOrphanedAuthorizationsActivity(IBusPublisher busPublisher, IPointsOfSaleService posService, ILogger <DeleteOrphanedAuthorizationsActivity> logger) : base(logger)
 {
     _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _posService   = posService ?? throw new ArgumentNullException(nameof(posService));
 }
Example #12
0
 public PointOfSaleAuthorizationLoader(IPointsOfSaleService pointsOfSaleService, IPosAgAuthorizationLoader posAgAuthLoader)
 {
     _pointsOfSaleService = pointsOfSaleService ?? throw new ArgumentNullException(nameof(pointsOfSaleService));
     _posAgAuthLoader     = posAgAuthLoader;
 }