示例#1
0
 /// <summary>
 /// Constructor Injection for all required object
 /// </summary>
 /// <param name="userRepository">Repository to handle CURD for AppUser table</param>
 /// <param name="logger">Logger to log messages</param>
 /// <param name="crypto">Encryption for password</param>
 /// <param name="cacheManagement">Cache Management</param>
 public LoginManagement(IAppUserRepository userRepository, ILogger logger, ICrypto crypto, ICacheManagement cacheManagement)
 {
     _userRepository  = userRepository;
     _logger          = logger;
     _crypto          = crypto;
     _cacheManagement = cacheManagement;
 }
示例#2
0
 public OutcomeIndicatorController(ICacheManagement cacheData)
 {
     _cacheData = cacheData;
     _outcomeIndicatorCacheName = string.Format(
         CacheNames.OUTCOMES, IDBContext.Current.Operation);
     _outcomesCacheName = string.Format(CacheNames.OUTCOMES, IDBContext.Current.Operation);
 }
示例#3
0
 public CommonService(
     IConfiguration configuration,
     ILogger <CommonService> logger,
     ICacheManagement cacheManagement)
 {
     _configuration   = configuration;
     _logger          = logger;
     _cacheManagement = cacheManagement;
 }
示例#4
0
    public AuthWebService()
    {
        //Not implemention Ioc

        //Capture the App location where the logger can find its configuration file
        SSO.Common.StaticMembers.ApplicationDirectory = System.AppDomain.CurrentDomain.BaseDirectory;

        _dataContext            = new AppDataContext(new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["AppDbConnection"].ConnectionString));
        _crypto                 = new Crypto();
        _cacheManagement        = new MemoryCacheManagement();
        _appUserRepository      = new AppUserRepository(_dataContext);
        _logger                 = new Log4NetLogger();
        _registrationManagement = new RegistrationManagement(_appUserRepository, _logger, _crypto);
        _loginManagement        = new LoginManagement(_appUserRepository, _logger, _crypto, _cacheManagement);
    }
示例#5
0
 public ImpactsController(
     ILinkPredefinedIndicatorService linkPredefinedIndicatorService,
     IReportsService reportsService,
     IResultsMatrixModelRepository clientResultsMatrix,
     ICacheManagement cacheData,
     ICacheManagement cacheDataResultMatrixEop,
     IDEMLockModulesService demLockModulesService)
 {
     _linkPredefinedIndicatorService = linkPredefinedIndicatorService;
     _reportsService           = reportsService;
     _clientResultsMatrix      = clientResultsMatrix;
     _cacheData                = cacheData;
     _cacheDataResultMatrixEop = cacheDataResultMatrixEop;
     _resultMatrixEOPCacheName = string.Format(
         CacheNames.IMPACTS_EOP, IDBContext.Current.Operation);
     _impactsCacheName      = string.Format(CacheNames.IMPACTS, IDBContext.Current.Operation);
     _demLockModulesService = demLockModulesService;
 }
示例#6
0
 public SaveController(
     IDEMService demService,
     Business.IDEMService demBusinessService,
     IOperationRepository operationRepository,
     ICacheManagement cacheData)
 {
     _demService                = demService;
     _demBusinessService        = demBusinessService;
     _operationRepository       = operationRepository;
     _cacheData                 = cacheData;
     _impactsIndicatorCacheName = string.Format(CacheNames.IMPACTS,
                                                IDBContext.Current.Operation);
     _outputsPhysicalCacheName = string.Format(CacheNames.OUTPUTS_PHYSICAL,
                                               IDBContext.Current.Operation);
     _outputsFinancialCacheName = string.Format(CacheNames.OUTPUTS_FINANCIAL,
                                                IDBContext.Current.Operation);
     _outcomesCacheName = string.Format(CacheNames.OUTCOMES,
                                        IDBContext.Current.Operation);
 }
 public StageFourController(IBasicDataModelRepository basicDataModelRepository,
                            IK2ServiceProxy k2ServiceProxy,
                            IOperationModelRepository operationClauseClient,
                            IGlobalModelRepository globalRepository,
                            IResultsMatrixModelRepository resultsMatrixRepository,
                            IVerifyContentModelRepositoryService clientVerifyContent,
                            IPMIDetailsModelRepository clientPMIDetails,
                            IRuleEvaluatorService ruleService,
                            ICacheManagement cacheData)
 {
     _basicDataModelRepository = basicDataModelRepository;
     _k2ServiceProxy           = k2ServiceProxy;
     _operationClauseClient    = operationClauseClient;
     _globalRepository         = globalRepository;
     _resultsMatrixRepository  = resultsMatrixRepository;
     _clientVerifyContent      = clientVerifyContent;
     _clientPMIDetails         = clientPMIDetails;
     _ruleService = ruleService;
     _cacheData   = cacheData;
 }
示例#8
0
 public PepController(IPEPService pepService,
                      IPepExecutingAgencies pepExecAgency,
                      IProcurement pepProcurement,
                      ICacheManagement cacheData,
                      IExportImportExcelPep exportImportExcelPep,
                      IRiskService pepRiskService)
 {
     _pepService                           = pepService;
     _pepExecAgency                        = pepExecAgency;
     _pepProcurement                       = pepProcurement;
     _pepRiskService                       = pepRiskService;
     _viewModelMapperHelper                = new ViewModelMapperHelper(pepService);
     _viewModelMapperHelperExecAgency      = new ViewModelMapperHelperExecAgency(pepExecAgency);
     _viewModelMapperHelperProcurementType =
         new ViewModelMapperHelperProcurementType(pepProcurement);
     _viewModelMapperHelperPepVersion = new ViewModelMapperHelperPepVersion(pepService);
     _viewModelMapperHelperRisk       = new ViewModelMapperHelperRisk(pepRiskService);
     _cacheData = cacheData;
     _outputsPhysicalCacheName = string.Format(
         CacheNames.OUTPUTS_PHYSICAL, IDBContext.Current.Operation);
     _outputsFinancialCacheName = string.Format(
         CacheNames.OUTPUTS_FINANCIAL, IDBContext.Current.Operation);
     _exportImportExcelPep = exportImportExcelPep;
 }
示例#9
0
 /// <summary>
 ///  Initializes a new instance of the <see cref="CacheController" /> class.
 /// </summary>
 /// <param name="cacheManagement"></param>
 public CacheController(ICacheManagement cacheManagement, IManageToken token)
 {
     _cacheManagement = cacheManagement;
     _token           = token;
 }
        public ProductProfileController(
            IAuthorizationService authorizationService,
            ICatalogService catalogService,
            IProductProfileService productProfileService,
            IEnumMappingService enumMappingService,
            IConvergenceRoleRepository convergenceRoleRepository,
            ICheckOperationTypeService checkOperationTypeService,
            IFinancialDataPreparationService financialDataPreparationService,
            ICreationFormService creationFormService,
            ICalculationEffortDaysService calculationEffortDaysService,
            IDocumentService documentService,
            IVerifyCountryService verifyCountryService,
            IFinancialDataExecutionService financialDataExecutionService,
            IFinancialDataBussinesService getFinancingTypeListService,
            IDeliverableService deliverableService,
            IApprovalOperationService approvalOperationService,
            IConvergenceMasterDataRepository convergenceMasterDataRepository,
            ICrossCreationOperationService crossCreationOperationService,
            IAttributesEngineService attributesEngineService,
            IRelationshipService relationshipService,
            ICalculationOperationYearService calculationOperationYearService,
            IOperationDataService operationDataService,
            ISecurityModelRepository securityModelRepository,
            IApprovalIncreasesRevampService approvalIncreasesRevampService,
            ICacheManagement cacheManagement)
            : base(authorizationService)
        {
            _authorizationService            = authorizationService;
            _enumMappingService              = enumMappingService;
            _catalogService                  = catalogService;
            _cacheService                    = CacheStorageFactory.Current;
            _productProfileService           = productProfileService;
            _convergenceRoleRepository       = convergenceRoleRepository;
            _operationDataService            = operationDataService;
            _calculationOperationYearService = calculationOperationYearService;

            _financialDataPreparationService = financialDataPreparationService;
            _creationFormService             = creationFormService;
            _documentService                 = documentService;
            _verifyCountryService            = verifyCountryService;
            _financialDataExecutionService   = financialDataExecutionService;
            _getFinancingTypeListService     = getFinancingTypeListService;
            _deliverableService              = deliverableService;
            _approvalOperationService        = approvalOperationService;
            _convergenceMasterDataRepository = convergenceMasterDataRepository;
            _crossCreationOperationService   = crossCreationOperationService;
            _attributesEngineService         = attributesEngineService;
            _relationshipService             = relationshipService;
            _approvalIncreasesRevampService  = approvalIncreasesRevampService;
            _securityModelRepository         = securityModelRepository;
            _viewModelMapperHelper           = new ViewModelMapperHelper(ViewBag,
                                                                         _authorizationService,
                                                                         _financialDataPreparationService,
                                                                         _creationFormService,
                                                                         _operationDataService,
                                                                         _catalogService,
                                                                         _calculationOperationYearService,
                                                                         calculationEffortDaysService,
                                                                         documentService,
                                                                         _verifyCountryService,
                                                                         _financialDataExecutionService,
                                                                         _getFinancingTypeListService,
                                                                         _deliverableService,
                                                                         _approvalOperationService,
                                                                         _convergenceMasterDataRepository,
                                                                         _crossCreationOperationService,
                                                                         _attributesEngineService,
                                                                         _relationshipService,
                                                                         _approvalIncreasesRevampService);
            _cacheManagement = cacheManagement;
        }
示例#11
0
 public BaseDataController(ICacheManagement cache)
 {
     CacheData = cache;
 }
 public ImpactIndicatorController(ICacheManagement cacheData)
 {
     _cacheData = cacheData;
     _impactsIndicatorCacheName = string.Format(
         CacheNames.IMPACTS, IDBContext.Current.Operation);
 }
示例#13
0
        public static ICacheManagement <CacheFormat> Get <CacheFormat>(this ICacheManagementFactory factory, string name)
        {
            ICacheManagement cache = factory.Get(name);

            return((ICacheManagement <CacheFormat>)cache);
        }
示例#14
0
 /// <summary>
 /// Constructor from <see cref="BaseDataController{T}"/> to initiate <see cref="CacheData"/>
 /// </summary>
 /// <param name="cache"><see cref="ICacheManagement"/> for <see cref="CacheData"/></param>
 public ImageResultDataController(ICacheManagement cache) : base(cache)
 {
 }
 public StageTwoController(IPMIDetailsModelRepository clientPMIDetails, ICacheManagement cacheData)
 {
     _clientPMIDetails = clientPMIDetails;
     _cacheData        = cacheData;
 }
 /// <summary>
 /// Constructor from <see cref="BaseDataController{T}"/> to initiate <see cref="CacheData"/>
 /// </summary>
 /// <param name="cache"><see cref="ICacheManagement"/> for <see cref="CacheData"/></param>
 public StringResultDataController(ICacheManagement cache) : base(cache)
 {
 }
示例#17
0
 public PMRLiveController(
     IPMIDetailsModelRepository clientPMIDetails, ICacheManagement cacheData)
 {
     _cacheData        = cacheData;
     _clientPMIDetails = clientPMIDetails;
 }