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); }
public RenewalController(IDataSource dataSource, Veneka.Indigo.CardManagement.dal.ICardManagementDAL cardManagementDAL, IIntegrationController integration, IComsCore comsCore, IResponseTranslator translator) { }
public AccountLookupLogic(CardMangementService cardManagementService, IComsCore comsCore, IIntegrationController integration) { _cardManService = cardManagementService; _comsCore = comsCore; _integration = integration; }
public FeeChargeLogic(CardMangementService cardManagementService, IComsCore comsCore, IIntegrationController integration) { _cardManService = cardManagementService; _comsCore = comsCore; _integration = integration; }
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; }