protected override async Task HandleOk(MouseEventArgs e)
        {
            validationResult = validator.Validate(DomainNameCreateRequest);

            if (validationResult.IsValid)
            {
                displayError = false;

                loadInProgress = true;

                var claimResult = await DomainNameService.CreateDomainNameAsync(DomainNameCreateRequest);

                if (claimResult)
                {
                    DomainNameCreateRequest = new DomainNameCreateRequest();
                    Dispatcher.Dispatch(new FetchDomainNameAction());

                    await OnCloseCallback.InvokeAsync(e);

                    await NotificationService.Open(new NotificationConfig()
                    {
                        Message          = Translator.GetString("CLAIM_SUCCESS_NOTIFICATION_TITLE").Value,
                        Description      = Translator.GetString("CLAIM_SUCCESS_NOTIFICATION_CONTENT").Value,
                        NotificationType = NotificationType.Success
                    });
                }
                else
                {
                    displayError = true;
                }

                loadInProgress = false;
            }
        }
Exemplo n.º 2
0
        private async Task StartValidationAsync(string id)
        {
            ValidationInProgress = true;

            if (await DomainNameService.ValidateDomainNameAsync(id))
            {
                Dispatcher.Dispatch(new FetchDomainNameAction());
                ValidationInProgress = false;
                StateHasChanged();

                await NotificationService.Open(new NotificationConfig()
                {
                    Message          = Translator.GetString("CLAIM_SUCCESS_NOTIFICATION_TITLE").Value,
                    Description      = Translator.GetString("DOMAIN_VALIDATION_FAILED").Value,
                    NotificationType = NotificationType.Success
                });
            }
            else
            {
                ValidationInProgress = false;
                StateHasChanged();

                await NotificationService.Open(new NotificationConfig()
                {
                    Message          = Translator.GetString("CLAIM_SUCCESS_NOTIFICATION_TITLE").Value,
                    Description      = Translator.GetString("DOMAIN_VALIDATION_SUCCESS").Value,
                    NotificationType = NotificationType.Error
                });
            }
        }
Exemplo n.º 3
0
 public RequestModelHandler(
     ISecureConnectionResolver secureConnectionResolver,
     ChannelService channelService,
     DomainNameService domainNameService,
     LanguageService languageService,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     RouteRequestInfoAccessor routeRequestInfoAccessor,
     CartAccessor cartAccessor,
     RequestModelAccessor requestModelAccessor,
     PageService pageService,
     FieldTemplateService fieldTemplateService,
     UrlService urlService)
 {
     _secureConnectionResolver       = secureConnectionResolver;
     _channelService                 = channelService;
     _domainNameService              = domainNameService;
     _languageService                = languageService;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _routeRequestInfoAccessor       = routeRequestInfoAccessor;
     _cartAccessor         = cartAccessor;
     _requestModelAccessor = requestModelAccessor;
     _pageService          = pageService;
     _fieldTemplateService = fieldTemplateService;
     _urlService           = urlService;
 }
Exemplo n.º 4
0
 public RequestModelActionFilter(
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     RequestModelAccessor requestModelAccessor,
     RouteRequestInfoAccessor routeRequestInfoAccessor,
     ISecureConnectionResolver secureConnectionResolver,
     ChannelService channelService,
     DomainNameService domainNameService,
     LanguageService languageService,
     PageService pageService,
     FieldTemplateService fieldTemplateService,
     UrlService urlService,
     CountryService countryService)
 {
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestInfoAccessor       = routeRequestInfoAccessor;
     _secureConnectionResolver       = secureConnectionResolver;
     _channelService       = channelService;
     _domainNameService    = domainNameService;
     _languageService      = languageService;
     _pageService          = pageService;
     _fieldTemplateService = fieldTemplateService;
     _urlService           = urlService;
     _countryService       = countryService;
 }
Exemplo n.º 5
0
 public AcceleratorPackage(
     AssortmentService assortmentService,
     FieldTemplateService fieldTemplateService,
     StructureInfoService structureInfoService,
     MarketService marketService,
     ChannelService channelService,
     CurrencyService currencyService,
     WebsiteService websiteService,
     InventoryService inventoryService,
     PriceListService priceListService,
     DomainNameService domainNameService,
     GroupService groupService,
     FolderService folderService,
     PersonService personService,
     LanguageService languageService,
     SlugifyService slugifyService)
 {
     _assortmentService    = assortmentService;
     _fieldTemplateService = fieldTemplateService;
     _structureInfoService = structureInfoService;
     _marketService        = marketService;
     _channelService       = channelService;
     _currencyService      = currencyService;
     _websiteService       = websiteService;
     _inventoryService     = inventoryService;
     _priceListService     = priceListService;
     _domainNameService    = domainNameService;
     _groupService         = groupService;
     _folderService        = folderService;
     _personService        = personService;
     _languageService      = languageService;
     _slugifyService       = slugifyService;
 }
Exemplo n.º 6
0
 public SignUpController(ApplicationContext context,
                         EmailMessageSender emailSender, SimpleLogger logger, AccountRegistrationService registrationService, DomainNameService domainNameService)
 {
     this.context             = context;
     this.emailSender         = emailSender;
     this.logger              = logger;
     this.registrationService = registrationService;
     this.domainNameService   = domainNameService;
 }
 public PasswordResetController(ApplicationContext context,
                                EmailMessageSender emailSender,
                                SimpleLogger logger, DomainNameService domainNameService)
 {
     this.context           = context;
     this.emailSender       = emailSender;
     this.logger            = logger;
     this.domainNameService = domainNameService;
 }
Exemplo n.º 8
0
 public MailServiceImpl(SchedulerService schedulerService,
                        UrlService urlService,
                        WebsiteService websiteService,
                        ChannelService channelService,
                        ILogger <MailService> logger,
                        MailServiceProcessor mailServiceProcessor,
                        DomainNameService domainNameService)
 {
     _schedulerService     = schedulerService;
     _urlService           = urlService;
     _websiteService       = websiteService;
     _channelService       = channelService;
     _logger               = logger;
     _mailServiceProcessor = mailServiceProcessor;
     _domainNameService    = domainNameService;
 }
Exemplo n.º 9
0
 public DeploymentController(
     DeploymentViewModelBuilder deploymentViewModelBuilder,
     FolderService folderService,
     ChannelService channelService,
     AssortmentService assortmentService,
     IPackageService packageService,
     IPackage package,
     WebsiteService websiteService,
     StructureInfoService structureInfoService,
     SettingService settingService,
     DomainNameService domainNameService,
     SlugifyService slugifyService,
     ILogger <DeploymentController> logger,
     InventoryService inventoryService,
     PriceListService priceListService,
     CategoryService categoryService,
     BaseProductService baseProductService,
     VariantService variantService,
     MarketService marketService)
 {
     _deploymentViewModelBuilder = deploymentViewModelBuilder;
     _folderService        = folderService;
     _channelService       = channelService;
     _assortmentService    = assortmentService;
     _packageService       = packageService;
     _package              = package;
     _websiteService       = websiteService;
     _structureInfoService = structureInfoService;
     _settingService       = settingService;
     _domainNameService    = domainNameService;
     _slugifyService       = slugifyService;
     _logger             = logger;
     _inventoryService   = inventoryService;
     _priceListService   = priceListService;
     _categoryService    = categoryService;
     _baseProductService = baseProductService;
     _variantService     = variantService;
     _marketService      = marketService;
 }
Exemplo n.º 10
0
 public WebsiteStructurePackage(PageService pageService, DataService dataService, ChannelService channelService, WebsiteService websiteService, FieldTemplateService fieldTemplateService, DomainNameService domainNameService, CountryService countryService, MarketService marketService, TaxClassService taxClassService, BlockService blockService, StructureInfoService structureInfoService, BlobService blobService)
 {
     _pageService          = pageService;
     _dataService          = dataService;
     _channelService       = channelService;
     _fieldTemplateService = fieldTemplateService;
     _countryService       = countryService;
     _marketService        = marketService;
     _taxClassService      = taxClassService;
     _blockService         = blockService;
     _structureInfoService = structureInfoService;
     _blobService          = blobService;
 }