public ReceivePartModified()
        {
            StandardKernel Kernal = new StandardKernel();

            Kernal.Load(Assembly.GetExecutingAssembly());
            _serviceSettings         = Kernal.Get <SettingRepository>();
            _serviceTaskMgrJob       = Kernal.Get <TaskMgrJobsRepository>();
            _serviceTaskMgrXml       = Kernal.Get <TaskMgrXmlRepository>();
            _serviceJobWorkFlow      = Kernal.Get <JobWorkflowRepository>();
            _serviceIncomingData     = Kernal.Get <IncomingDataRepository>();
            _serviceJobStackErrorLog = Kernal.Get <JobStackErrorLogRepository>();
            _serviceTransactionLog   = Kernal.Get <TransactionLogRepository>();
            _serviceInbox            = Kernal.Get <InboxRepository>();
            _servicePipeline         = Kernal.Get <PipelineRepository>();
            _serviceDataset          = Kernal.Get <metadataDatasetRepository>();
            _serviceNomStatus        = Kernal.Get <NominationStatusRepository>();
            _applicationLogs         = Kernal.Get <ApplicationLogRepository>();
            _serviceBatch            = Kernal.Get <BatchRepository>();
            _serviceNomination       = Kernal.Get <NominationsRepository>();
            _serviceMetadatCycle     = Kernal.Get <metadataCycleRepository>();
            unitOfWork                   = Kernal.Get <UnitOfWork>();
            modalFactory                 = Kernal.Get <ModalFactory>();
            _serviceShipperCompany       = Kernal.Get <ShipperCompanyRepository>();
            _serviceFileSysIncomingData  = Kernal.Get <FileSysIncomingDataRepository>();
            _serviceSqtsOpPerTransaction = Kernal.Get <SQTSOPPerTransactionRepository>();
            #region get nmqr services
            _serviceNmqrPerTransaction = Kernal.Get <NMQRPerTransactionRepository>();
            #endregion
            #region get sqts service
            _serviceSqtsTrackOnNom     = Kernal.Get <SQTSTrackOnNomRepository>();
            _serviceSqtsFile           = Kernal.Get <SQTSFileRepository>();
            _serviceSqtsPerTransaction = Kernal.Get <SQTSPerTransactionRepository>();
            #endregion
            #region get email service
            emailTempalteService = Kernal.Get <EmailTemplateRepository>();
            emailQueueService    = Kernal.Get <EmailQueueRepository>();
            appLogService        = Kernal.Get <ApplicationLogRepository>();
            #endregion

            var         path         = Path.Combine(HostingEnvironment.MapPath("~/App_Data"), "SQTSReductionReasons.xml");
            FileInfo    fileInfo     = new FileInfo(path);
            XmlDocument xmlRedReason = new XmlDocument();

            if (System.IO.File.Exists(path) && !IsFileLocked(fileInfo))
            {
                try
                {
                    xmlRedReason.Load(path);
                    var redResonNode = xmlRedReason.GetElementsByTagName("Reason");
                    if (redResonNode != null)
                    {
                        redReasonList = redResonNode.Cast <XmlNode>();
                    }
                }
                catch (Exception ex)
                {
                }
            }
        }
Exemple #2
0
 public TransactionsService(ITransactionLogRepository transactionLogRepository,
                            IEntityRepository entitiesRepository, IWalletService walletsService, IConfigurationRepository configurationRepository,
                            IWalletRepository walletRepository)
 {
     this.entitiesRepository       = entitiesRepository;
     this.walletsService           = walletsService;
     this.configurationRepository  = configurationRepository;
     this.transactionLogRepository = transactionLogRepository;
     this.walletRepository         = walletRepository;
 }
Exemple #3
0
 public ContractTransactionProcessor(
     Web3.Web3 web3, IContractRepository contractRepository,
     ITransactionRepository transactionRepository,
     IAddressTransactionRepository addressTransactionRepository,
     ITransactionVMStackRepository transactionVmStackRepository,
     ITransactionLogRepository transactionLogRepository)
 {
     Web3 = web3;
     _contractRepository           = contractRepository;
     _transactionRepository        = transactionRepository;
     _addressTransactionRepository = addressTransactionRepository;
     _transactionVmStackRepository = transactionVmStackRepository;
     _transactionLogRepository     = transactionLogRepository;
     VmStackErrorChecker           = new VmStackErrorChecker();
 }
        public EventClassModel()
        {
            idbfactory             = new DbFactory();
            unitOfWork             = new UnitOfWork(idbfactory);
            repotk_Location        = new LocationRepository(idbfactory);
            repoEvent              = new EventRepository(idbfactory);
            repoEventCustomer      = new EventCustomerRepository(idbfactory);
            repotk_ClientProfile   = new ClientProfileRepository(idbfactory);
            repoEventCategory      = new EventCategoryRepository(idbfactory);
            repotk_ContactInfo     = new ContactInformationRepository(idbfactory);
            repotk_Passenger       = new PassengerRepository(idbfactory);
            repotk_SeatMapping     = new SeatMappingRepository(idbfactory);
            repotk_TranLog         = new TransactionLogRepository(idbfactory);
            repoFreeEvents         = new FreeEventsRepository(idbfactory);
            repoFreeEventCustomers = new FreeEventCustomersRepository(idbfactory);

            repoSms             = new SmsRepository(idbfactory);
            repotk_BatchCounter = new BatchCounterRpository(idbfactory);
            repoCoupon          = new CouponsRepository(idbfactory);
            repoCouponAssign    = new CouponCodeAssignmentRepository(idbfactory);
            repoCouponSetUp     = new CouponsSetUpRepository(idbfactory);
            db = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());
        }
Exemple #5
0
 public TransactionLogService(ITransactionLogRepository repository) : base(repository)
 {
 }
Exemple #6
0
 public TransactionLogService(ITransactionLogRepository transactionLogRepository)
 {
     _transactionLogRepository = transactionLogRepository;
 }
 public TransactionLogRepositoryTests(ITransactionLogRepository repo)
 {
     _repo = repo;
 }
 public WalletService(IUserRepository userRepository, ITransactionLogRepository transactionLogRepository)
 {
     _userRepository           = userRepository;
     _transactionLogRepository = transactionLogRepository;
 }
 public TransactionLogDomainService(
     ITransactionLogRepository transactionLogRepository)
 {
     this.TransactionLogRepository = transactionLogRepository;
 }
 public FilterLogStorageStepHandler(ITransactionLogRepository transactionLogRepository)
 {
     _transactionLogRepository = transactionLogRepository;
 }
Exemple #11
0
 public AdminController(ITransactionLogRepository logRepository, ICountryRepository countryRepository, IPopupService popupService) : base(popupService)
 {
     this.logRepository     = logRepository;
     this.countryRepository = countryRepository;
 }
 public TransactionManager(ITransactionLogRepository transactionLogRepository, IAccountRepository accountRepository)
 {
     _transactionRepository = transactionLogRepository;
     _accountRepository     = accountRepository;
 }
 public CinderFilterLogStorageStepHandler(ILogger <CinderFilterLogStorageStepHandler> logger,
                                          ITransactionLogRepository transactionLogRepository) : base(transactionLogRepository)
 {
     _logger = logger;
     _transactionLogRepository = transactionLogRepository;
 }
Exemple #14
0
 public TransactionLogService(ILogger <TransactionLogService> logger,
                              ITransactionLogRepository transactionLogRepository)
 {
     _logger = logger;
     _transactionLogRepository = transactionLogRepository;
 }
Exemple #15
0
 public TransactionLogProcessor(ITransactionLogRepository repository, Predicate <FilterLog> predicate = null)
 {
     Repository = repository;
     Predicate  = predicate ?? new Predicate <FilterLog>(l => true);
 }
 public TransactionLogger()
 {
     repo = new RepositoryFactory().CreateTransactionLogRepository();
     log  = new TransactionLog();
 }
Exemple #17
0
 public TransactionLogRepositoryHandler(ITransactionLogRepository transactionLogRepository)
 {
     _transactionLogRepository = transactionLogRepository;
 }
 public TransactionLogProcessor(ITransactionLogRepository repository, Predicate <EventLog <TEventDto> > predicate = null)
 {
     Repository = repository;
     Predicate  = predicate ?? new Predicate <EventLog <TEventDto> >(l => true);
 }