Пример #1
0
        private static IComsCore GetComs()
        {
            if (_comsCore == null)
            {
                lock (_lockObj)
                {
                    if (_comsCore != null)
                    {
                        return(_comsCore);
                    }

                    int comsOption = GetComsType();

                    if (comsOption == 0)
                    {
                        _comsCore = new ComsCore(new LocalDataSource());
                    }
                    else if (comsOption == 1)
                    {
                        _comsCore = new WcfComsClient(new Uri(ConfigurationManager.AppSettings["Uri"].ToString()));
                        System.Timers.Timer keepAliveTimer = new System.Timers.Timer(30000);
                        keepAliveTimer.AutoReset = false;
                        keepAliveTimer.Elapsed  += new System.Timers.ElapsedEventHandler(keepAliveTimer_Elapsed);
                        keepAliveTimer.Start();
                    }
                }
            }

            return(_comsCore);
        }
Пример #2
0
 public RenewalController(IDataSource dataSource, Veneka.Indigo.CardManagement.dal.ICardManagementDAL cardManagementDAL, IIntegrationController integration, IComsCore comsCore, IResponseTranslator translator)
 {
 }
Пример #3
0
 public AccountLookupLogic(CardMangementService cardManagementService, IComsCore comsCore, IIntegrationController integration)
 {
     _cardManService = cardManagementService;
     _comsCore       = comsCore;
     _integration    = integration;
 }
Пример #4
0
 public FeeChargeLogic(CardMangementService cardManagementService, IComsCore comsCore, IIntegrationController integration)
 {
     _cardManService = cardManagementService;
     _comsCore       = comsCore;
     _integration    = integration;
 }
Пример #5
0
 public FundsLoadController(IDataSource dataSource, ICardManagementDAL cardManagementDAL, IIntegrationController integration, IComsCore comsCore, IResponseTranslator translator, ICardLimitDataAccess cardLimitDAL)
 {
     _cardManService = new CardMangementService(dataSource ?? new LocalDataSource(), cardManagementDAL, translator, cardLimitDAL);
     _integration    = integration ?? IntegrationController.Instance;
     _comsCore       = comsCore ?? COMSController.ComsCore;
 }