Exemplo n.º 1
0
 public ReportRepository(ClassifiedsContext context, IAdvertisementRepository advertisementRepository,
                         IInboxRepository inboxRepository) :
     base(context)
 {
     _advertisementRepository = advertisementRepository;
     _inboxRepository         = inboxRepository;
 }
Exemplo n.º 2
0
        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)
                {
                }
            }
        }
Exemplo n.º 3
0
 public InboxService(IInboxRepository inboxRepository, 
                     IMvxMessenger mvxMessenger)
 {
     // this wont get initialized from the Mvx IoC
     // so we do it here
     _inboxRepository = inboxRepository;
     _mvxMessenger = mvxMessenger;
 }
Exemplo n.º 4
0
 public InboxController(IInboxRepository inboxCtx, IHttpContextAccessor httpContextAccessor /*,LOLHUBApplicationDbContext context, IPlayerRepository playerRepository, ITeamRepository teamrepository*/)
 {
     _inboxCtx            = inboxCtx;
     _httpContextAccessor = httpContextAccessor;
     //_context = context;
     //_playerRepository = playerRepository;
     //_teamRepository = teamrepository;
 }
Exemplo n.º 5
0
 public InboxService(IInboxRepository inboxRepository,
                     IMvxMessenger mvxMessenger)
 {
     // this wont get initialized from the Mvx IoC
     // so we do it here
     _inboxRepository = inboxRepository;
     _mvxMessenger    = mvxMessenger;
 }
Exemplo n.º 6
0
 public GigsController(IUnitOfWork unitOfWork)
 {
     _unitOfWork             = unitOfWork;
     _attendanceRepository   = _unitOfWork.Attendances;
     _gigRepository          = _unitOfWork.Gigs;
     _inboxRepository        = _unitOfWork.Inboxes;
     _notificationRepository = _unitOfWork.Notifications;
     _userRepository         = _unitOfWork.Users;
 }
Exemplo n.º 7
0
 public OrganizerController(UserManager <UserModel> userManager,
                            IChatRepository chatRepository,
                            INotesRepository notesRepository,
                            RoleManager <IdentityRole> roleManager,
                            IInboxRepository inboxRepository)
 {
     _userManager     = userManager;
     _chatRepository  = chatRepository;
     _notesRepository = notesRepository;
     _roleManager     = roleManager;
     _inboxRepository = inboxRepository;
 }
Exemplo n.º 8
0
 public OfferRepository(ClassifiedsContext context, IAdvertisementRepository advertisementRepository,
                        IAttributeRepository attributeRepository,
                        ICategoryRepository categoryRepository, IImageRepository imageRepository,
                        IInboxRepository inboxRepository) : base(context)
 {
     _advertisementRepository = advertisementRepository;
     _imageRepository         = imageRepository;
     _attributeRepository     = attributeRepository;
     _categoryRepository      = categoryRepository;
     _context         = context;
     _inboxRepository = inboxRepository;
 }
Exemplo n.º 9
0
 public AdDetailRepository(IAdvertisementRepository advertisementRepository, IImageRepository imageRepository,
     IAttributeDetailRepository attributeDetailRepository, ICategoryRepository categoryRepository,
     IAttributeRepository attributeRepository, IInboxRepository inboxRepository,
     IReportRepository reportRepository,
     ClassifiedsContext context, IConfiguration configuration) : base(context)
 {
     _advertisementRepository = advertisementRepository;
     _reportRepository = reportRepository;
     _inboxRepository = inboxRepository;
     _imageRepository = imageRepository;
     _attributeDetailRepository = attributeDetailRepository;
     _attributeRepository = attributeRepository;
     _categoryRepository = categoryRepository;
     _configuration = configuration;
     _context = context;
 }
Exemplo n.º 10
0
        public SyncHostedService(IChainSmsHandler chainSmsHandler,
                                 IInboxRepository inboxRepository, BackgroundConfiguration backgroundConfiguration,
                                 int maxBatchSize)
        {
            _chainSmsHandler         = chainSmsHandler;
            _inboxRepository         = inboxRepository;
            _backgroundConfiguration = backgroundConfiguration;

            if (maxBatchSize <= 0)
            {
                throw new ArgumentException("Batch size should be positive", nameof(maxBatchSize));
            }

            _maxBatchSize = maxBatchSize;

            _smsSet = new HashSet <DbSms>(_maxBatchSize, new SmsEqualityComparer());
            _tasks  = new List <Task>();
        }
Exemplo n.º 11
0
 public AdminController(IShoppingCartItemRepository shoppingCartItemRepository,
                        IProductRepository productRepository,
                        IIncomeRepository incomeRepository,
                        IUserOrderItemRepository userOrderItemRepository,
                        IUserOrderRepository userOrderRepository,
                        UserManager <UserModel> userManager,
                        RoleManager <IdentityRole> roleManager,
                        IInboxRepository inboxRepository)
 {
     _shoppingCartItemRepository = shoppingCartItemRepository;
     _productRepository          = productRepository;
     _incomeRepository           = incomeRepository;
     _userOrderItemRepository    = userOrderItemRepository;
     _userOrderRepository        = userOrderRepository;
     _userManager     = userManager;
     _roleManager     = roleManager;
     _inboxRepository = inboxRepository;
 }
Exemplo n.º 12
0
 public HomeController(ICMSIndexRepository cMSIndexRepository,
                       IInboxRepository inboxRepository)
 {
     _cMSIndexRepository = cMSIndexRepository;
     _inboxRepository    = inboxRepository;
 }
Exemplo n.º 13
0
 public WiadOtrzymaneViewComponent(IInboxRepository inboxCtx, IHttpContextAccessor httpContextAccessor)
 {
     _inboxCtx            = inboxCtx;
     _httpContextAccessor = httpContextAccessor;
 }
Exemplo n.º 14
0
 protected PromoteSmsHandler(IInboxRepository repository, string promoteState)
 {
     _repository   = repository;
     _promoteState = promoteState;
 }
Exemplo n.º 15
0
 public FailSmsHandler(IInboxRepository repository) : base(repository, Constants.States.Fail)
 {
 }
Exemplo n.º 16
0
 public CommitSmsHandler(IInboxRepository repository) : base(repository, Constants.States.Sent)
 {
 }
Exemplo n.º 17
0
 public InboxController(IInboxRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 18
0
 public InboxController(IInboxRepository inboxRepository)
 {
     _inboxRepository = inboxRepository;
 }
Exemplo n.º 19
0
 public InboxesController(IUnitOfWork unitOfWork)
 {
     _unitOfWork      = unitOfWork;
     _inboxReposiroty = _unitOfWork.Inboxes;
 }