public ProjectService(IDomainManagerService domainManagerService,
                       IIdentityService identityService,
                       IOrganizationRepository organizationRepository,
                       IProjectRepository projectRepository,
                       IProjectFeatureRepository projectFeatureRepository,
                       IUserRepository userRepository,
                       IProjectTemplateRepository projectTemplateRepository,
                       Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                       Func <ConfigurationManagementService, ICMSService> cmsService,
                       IEventBusService eventBusService,
                       ISlugService slugService,
                       IActivityMonitorService activityMonitorService,
                       IDataProtectorService dataProtectorService)
 {
     _domainManagerService      = domainManagerService;
     _identityService           = identityService;
     _organizationRepository    = organizationRepository;
     _projectRepository         = projectRepository;
     _projectFeatureRepository  = projectFeatureRepository;
     _userRepository            = userRepository;
     _projectTemplateRepository = projectTemplateRepository;
     _cmsService           = cmsService;
     _cmsCredentialService = cmsCredentialService;
     _eventBusService      = eventBusService;
     _slugService          = slugService;
     _correlationId        = activityMonitorService.GetCorrelationId();
     _dataProtectorService = dataProtectorService;
 }
 public ProjectServiceService(IDomainManagerService domainManagerService,
                              IIdentityService identityService,
                              IOrganizationRepository organizationRepository,
                              IUserRepository userRepository,
                              Func <ConfigurationManagementService, ICMSService> cmsService,
                              Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                              IProjectServiceTemplateRepository projectServiceTemplateRepository,
                              ICMSPipelineService cmsPipelineService,
                              IEventBusService eventBusService,
                              IActivityMonitorService activityMonitorService,
                              IOptions <VSTSServiceOptions> vstsOptions,
                              IOptions <FakeAccountServiceOptions> fakeAccountOptions,
                              IProjectCloudCredentialService cloudCredentialService,
                              IDataProtectorService dataProtectorService)
 {
     _domainManagerService             = domainManagerService;
     _identityService                  = identityService;
     _organizationRepository           = organizationRepository;
     _userRepository                   = userRepository;
     _projectServiceTemplateRepository = projectServiceTemplateRepository;
     _cmsService             = cmsService;
     _cmsCredentialService   = cmsCredentialService;
     _cmsPipelineService     = cmsPipelineService;
     _eventBusService        = eventBusService;
     _correlationId          = activityMonitorService.GetCorrelationId();
     _vstsOptions            = vstsOptions;
     _fakeAccountOptions     = fakeAccountOptions;
     _dataProtectorService   = dataProtectorService;
     _cloudCredentialService = cloudCredentialService;
 }
 public ProjectCloudCredentialService(IDataProtectorService dataProtectorService,
                                      Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                                      IOptions <FakeAccountServiceOptions> fakeAccountOptions)
 {
     this._dataProtectorService = dataProtectorService;
     this._fakeAccountOptions   = fakeAccountOptions;
     this._cmsCredentialService = cmsCredentialService;
 }
Пример #4
0
 public ProjectEnvironmentQueryService(IDomainManagerService domainManagerService,
                                       IIdentityService identityService,
                                       IUserRepository userRepository,
                                       Func <DomainModels.CloudProviderService, ICPSQueryService> cpsQueryService,
                                       IDataProtectorService dataProtectorService)
 {
     _domainManagerService = domainManagerService;
     _identityService      = identityService;
     _userRepository       = userRepository;
     _cpsQueryService      = cpsQueryService;
     _dataProtectorService = dataProtectorService;
 }
 public InternalProjectServiceService(IDomainManagerService domainManagerService,
                                      IProjectServiceRepository projectServiceRepository,
                                      IEventBusService eventBusService,
                                      IActivityMonitorService activityMonitorService,
                                      IDataProtectorService dataProtectorService)
 {
     _domainManagerService     = domainManagerService;
     _projectServiceRepository = projectServiceRepository;
     _eventBusService          = eventBusService;
     _correlationId            = activityMonitorService.GetCorrelationId();
     _dataProtectorService     = dataProtectorService;
 }
Пример #6
0
 public OrganizationCPSQueryService(IDomainManagerService domainManagerService,
                                    IIdentityService identityService,
                                    IOrganizationCPSRepository organizationCPSRepository,
                                    IUserRepository userRepository,
                                    IDataProtectorService dataProtectorService)
 {
     _domainManagerService      = domainManagerService;
     _identityService           = identityService;
     _organizationCPSRepository = organizationCPSRepository;
     _userRepository            = userRepository;
     _dataProtectorService      = dataProtectorService;
 }
 public ProjectFeatureServiceQueryService(IDomainManagerService domainManagerService,
                                          IIdentityService identityService,
                                          IDataProtectorService dataProtectorService,
                                          Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                                          Func <ConfigurationManagementService, ICMSQueryService> cmsQueryService,
                                          IUserRepository userRepository)
 {
     _domainManagerService = domainManagerService;
     _identityService      = identityService;
     _userRepository       = userRepository;
     _cmsCredentialService = cmsCredentialService;
     _dataProtectorService = dataProtectorService;
     _cmsQueryService      = cmsQueryService;
 }
Пример #8
0
        public async Task Invoke(HttpContext httpContext, IDataProtectorService dataProtectorService)
        {
            if (httpContext.Request.Method == HttpMethod.Get.Method && httpContext.Request.Query.ContainsKey(Constants.QueryStringPrefix))
            {
                bool isTimeLimited = httpContext.Request.Query.ContainsKey(Constants.TimeStringPrefix); //Query string'e expire minutes verilmiş mi?

                string queryStrings = httpContext.Request.Query[Constants.QueryStringPrefix].ToString();
                string unprotected  = dataProtectorService.Unprotect(queryStrings, isTimeLimited);

                string urlDecode = WebUtility.UrlDecode(unprotected);
                httpContext.Request.QueryString = QueryString.Create(QueryHelpers.ParseQuery(urlDecode));
            }

            await _requestDelegate(httpContext);
        }
Пример #9
0
 public OrganizationCMSQueryService(IDomainManagerService domainManagerService,
                                    IIdentityService identityService,
                                    IOrganizationCMSRepository organizationCMSRepository,
                                    IUserRepository userRepository,
                                    Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                                    Func <ConfigurationManagementService, ICMSQueryService> cmsQueryService,
                                    IDataProtectorService dataProtectorService)
 {
     _domainManagerService      = domainManagerService;
     _identityService           = identityService;
     _organizationCMSRepository = organizationCMSRepository;
     _userRepository            = userRepository;
     _cmsQueryService           = cmsQueryService;
     _cmsCredentialService      = cmsCredentialService;
     _dataProtectorService      = dataProtectorService;
 }
 public ProjectFeatureService(IDomainManagerService domainManagerService,
                              IIdentityService identityService,
                              IUserRepository userRepository,
                              IEventBusService eventBusService,
                              IActivityMonitorService activityMonitorService,
                              IProjectCloudCredentialService cloudCredentialService,
                              IDataProtectorService dataProtectorService)
 {
     _domainManagerService   = domainManagerService;
     _identityService        = identityService;
     _userRepository         = userRepository;
     _eventBusService        = eventBusService;
     _correlationId          = activityMonitorService.GetCorrelationId();
     _dataProtectorService   = dataProtectorService;
     _cloudCredentialService = cloudCredentialService;
 }
Пример #11
0
 public OrganizationCPSService(IDomainManagerService domainManagerService,
                               IIdentityService identityService,
                               IOrganizationRepository organizationRepository,
                               IOrganizationCPSRepository organizationCPSRepository,
                               IUserRepository userRepository,
                               Func <CloudProviderService, ICPSCredentialService> cpsCredentialService,
                               IDataProtectorService dataProtectorService)
 {
     _domainManagerService      = domainManagerService;
     _identityService           = identityService;
     _organizationRepository    = organizationRepository;
     _organizationCPSRepository = organizationCPSRepository;
     _userRepository            = userRepository;
     _cpsCredentialService      = cpsCredentialService;
     _dataProtectorService      = dataProtectorService;
 }
Пример #12
0
 public ProjectFeatureServiceEnvironmentService(IDomainManagerService domainManagerService,
                                                IIdentityService identityService,
                                                IUserRepository userRepository,
                                                Func <DomainModels.CloudProviderService, ICPSQueryService> cpsQueryService,
                                                IEventBusService eventBusService,
                                                IActivityMonitorService activityMonitorService,
                                                IDataProtectorService dataProtectorService
                                                )
 {
     _domainManagerService = domainManagerService;
     _identityService      = identityService;
     _userRepository       = userRepository;
     _cpsQueryService      = cpsQueryService;
     _eventBusService      = eventBusService;
     _correlationId        = activityMonitorService.GetCorrelationId();
     _dataProtectorService = dataProtectorService;
 }
Пример #13
0
 public ProjectEnvironmentService(IDomainManagerService domainManagerService,
                                  IIdentityService identityService,
                                  IUserRepository userRepository,
                                  IEventBusService eventBusService,
                                  IActivityMonitorService activityMonitorService,
                                  ICMSPipelineService cmsPipelineService,
                                  IOptions <VSTSServiceOptions> vstsOptions,
                                  IOptions <FakeAccountServiceOptions> fakeAccountOptions,
                                  IDataProtectorService dataProtectorService)
 {
     _domainManagerService = domainManagerService;
     _identityService      = identityService;
     _userRepository       = userRepository;
     _eventBusService      = eventBusService;
     _correlationId        = activityMonitorService.GetCorrelationId();
     _cmsPipelineService   = cmsPipelineService;
     _vstsOptions          = vstsOptions;
     _fakeAccountOptions   = fakeAccountOptions;
     _dataProtectorService = dataProtectorService;
 }
Пример #14
0
 public ProjectQueryService(IDomainManagerService domainManagerService,
                            IIdentityService identityService,
                            IProjectRepository projectRepository,
                            Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                            Func <ConfigurationManagementService, ICMSQueryService> cmsQueryService,
                            IDataProtectorService dataProtectorService,
                            IProjectCloudCredentialService cloudCredentialService,
                            IOptions <FakeAccountServiceOptions> vstsFakeOptions,
                            IUserRepository userRepository)
 {
     _domainManagerService        = domainManagerService;
     _identityService             = identityService;
     _projectRepository           = projectRepository;
     _userRepository              = userRepository;
     _cmsCredentialService        = cmsCredentialService;
     this._dataProtectorService   = dataProtectorService;
     this._cmsQueryService        = cmsQueryService;
     this._vstsFakeOptions        = vstsFakeOptions;
     this._cloudCredentialService = cloudCredentialService;
 }
 public OrganizationService(IDomainManagerService domainManagerService,
                            IIdentityService identityService,
                            IOrganizationRepository organizationRepository,
                            IProjectRepository projectRepository,
                            IProjectFeatureRepository projectFeatureRepository,
                            IOrganizationCPSRepository organizationCPSRepository,
                            IOrganizationCMSRepository organizationCMSRepository,
                            IUserRepository userRepository,
                            IEventBusService eventBusService,
                            IActivityMonitorService activityMonitorService,
                            IDataProtectorService dataProtectorService)
 {
     _domainManagerService      = domainManagerService;
     _identityService           = identityService;
     _organizationRepository    = organizationRepository;
     _projectRepository         = projectRepository;
     _projectFeatureRepository  = projectFeatureRepository;
     _organizationCPSRepository = organizationCPSRepository;
     _organizationCMSRepository = organizationCMSRepository;
     _userRepository            = userRepository;
     _eventBusService           = eventBusService;
     _correlationId             = activityMonitorService.GetCorrelationId();
     _dataProtectorService      = dataProtectorService;
 }