コード例 #1
0
 public UsersController(
     ICuratedFeedService feedsQuery,
     IUserService userService,
     IPackageService packageService,
     IPackageOwnerRequestService packageOwnerRequestService,
     IMessageService messageService,
     IAppConfiguration config,
     AuthenticationService authService,
     ICredentialBuilder credentialBuilder,
     IDeleteAccountService deleteAccountService,
     ISupportRequestService supportRequestService,
     ITelemetryService telemetryService,
     ISecurityPolicyService securityPolicyService,
     ICertificateService certificateService,
     IContentObjectService contentObjectService)
     : base(
         authService,
         feedsQuery,
         packageService,
         messageService,
         userService,
         telemetryService,
         securityPolicyService,
         certificateService,
         contentObjectService)
 {
     _packageOwnerRequestService = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
     _config                = config ?? throw new ArgumentNullException(nameof(config));
     _credentialBuilder     = credentialBuilder ?? throw new ArgumentNullException(nameof(credentialBuilder));
     _deleteAccountService  = deleteAccountService ?? throw new ArgumentNullException(nameof(deleteAccountService));
     _supportRequestService = supportRequestService ?? throw new ArgumentNullException(nameof(supportRequestService));
 }
コード例 #2
0
 public PackageService(
     IEntityRepository <PackageRegistration> packageRegistrationRepository,
     IEntityRepository <Package> packageRepository,
     IPackageOwnerRequestService packageOwnerRequestService,
     IPackageNamingConflictValidator packageNamingConflictValidator,
     IAuditingService auditingService) : base(packageRepository)
 {
     _packageRegistrationRepository  = packageRegistrationRepository ?? throw new ArgumentNullException(nameof(packageRegistrationRepository));
     _packageOwnerRequestService     = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
     _packageNamingConflictValidator = packageNamingConflictValidator ?? throw new ArgumentNullException(nameof(packageNamingConflictValidator));
     _auditingService = auditingService ?? throw new ArgumentNullException(nameof(auditingService));
 }
 public PackageOwnershipManagementService(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IReservedNamespaceService reservedNamespaceService,
     IPackageOwnerRequestService packageOwnerRequestService,
     IAuditingService auditingService)
 {
     _entitiesContext            = entitiesContext ?? throw new ArgumentNullException(nameof(entitiesContext));
     _packageService             = packageService ?? throw new ArgumentNullException(nameof(packageService));
     _reservedNamespaceService   = reservedNamespaceService ?? throw new ArgumentNullException(nameof(reservedNamespaceService));
     _packageOwnerRequestService = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
     _auditingService            = auditingService ?? throw new ArgumentNullException(nameof(auditingService));
 }
コード例 #4
0
 public JsonApiController(
     IPackageService packageService,
     IUserService userService,
     IPackageOwnerRequestService packageOwnerRequestService,
     IMessageService messageService,
     IAppConfiguration appConfiguration,
     ISecurityPolicyService policyService)
 {
     _packageService             = packageService;
     _userService                = userService;
     _packageOwnerRequestService = packageOwnerRequestService;
     _messageService             = messageService;
     _appConfiguration           = appConfiguration;
     _policyService              = policyService;
 }
コード例 #5
0
 public UsersController(
     ICuratedFeedService feedsQuery,
     IUserService userService,
     IPackageService packageService,
     IPackageOwnerRequestService packageOwnerRequestService,
     IMessageService messageService,
     IAppConfiguration config,
     AuthenticationService authService,
     ICredentialBuilder credentialBuilder)
 {
     _curatedFeedService         = feedsQuery ?? throw new ArgumentNullException(nameof(feedsQuery));
     _userService                = userService ?? throw new ArgumentNullException(nameof(userService));
     _packageService             = packageService ?? throw new ArgumentNullException(nameof(packageService));
     _packageOwnerRequestService = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
     _messageService             = messageService ?? throw new ArgumentNullException(nameof(messageService));
     _config            = config ?? throw new ArgumentNullException(nameof(config));
     _authService       = authService ?? throw new ArgumentNullException(nameof(authService));
     _credentialBuilder = credentialBuilder ?? throw new ArgumentNullException(nameof(credentialBuilder));
 }
コード例 #6
0
        public UsersController(
            IUserService userService,
            IPackageService packageService,
            IPackageOwnerRequestService packageOwnerRequestService,
            IMessageService messageService,
            IAppConfiguration config,
            AuthenticationService authService,
            ICredentialBuilder credentialBuilder,
            IDeleteAccountService deleteAccountService,
            ISupportRequestService supportRequestService,
            ITelemetryService telemetryService,
            ISecurityPolicyService securityPolicyService,
            ICertificateService certificateService,
            IContentObjectService contentObjectService,
            IFeatureFlagService featureFlagService,
            IMessageServiceConfiguration messageServiceConfiguration,
            IIconUrlProvider iconUrlProvider)
            : base(
                authService,
                packageService,
                messageService,
                userService,
                telemetryService,
                securityPolicyService,
                certificateService,
                contentObjectService,
                messageServiceConfiguration,
                deleteAccountService,
                iconUrlProvider)
        {
            _packageOwnerRequestService = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
            _config                = config ?? throw new ArgumentNullException(nameof(config));
            _credentialBuilder     = credentialBuilder ?? throw new ArgumentNullException(nameof(credentialBuilder));
            _supportRequestService = supportRequestService ?? throw new ArgumentNullException(nameof(supportRequestService));
            _featureFlagService    = featureFlagService ?? throw new ArgumentNullException(nameof(featureFlagService));

            _listPackageItemRequiredSignerViewModelFactory = new ListPackageItemRequiredSignerViewModelFactory(securityPolicyService, iconUrlProvider);
            _listPackageItemViewModelFactory = new ListPackageItemViewModelFactory(iconUrlProvider);
        }