Ejemplo n.º 1
0
        public UPayAgent(IPointOfSale pointOfSale, ITransactionSwitch transactionSwitch, ILogger logger)
        {
            _pointOfSale       = pointOfSale;
            _transactionSwitch = transactionSwitch;
            _logger            = logger;

            AgentState = UPayAgentState.AcceptPointOfSaleConnection;
        }
Ejemplo n.º 2
0
 protected override void OnStart(string[] args)
 {
     _logger = LoggerFactory.GetLogger();
     _logger.Info("UPayService is starting...");
     _pointOfSale       = new PointOfSale(_logger);
     _transactionSwitch = new TransactionSwitch(_logger);
     _agent             = new UPayAgent(_pointOfSale, _transactionSwitch, _logger);
     _agent.Start();
 }