コード例 #1
0
 public StringResourceAdminService(IStringResourceProvider provider, SiteSettings siteSettings,
                                   ISession session)
 {
     _provider     = provider;
     _siteSettings = siteSettings;
     _session      = session;
 }
コード例 #2
0
 public CustomerRemoval()
 {
     DataRetentionService = DependencyResolver.Current
                            .GetService <IDataRetentionService>();
     StringResourceProvider = DependencyResolver.Current
                              .GetService <IStringResourceProvider>();
 }
コード例 #3
0
 public CommentsUIService(CommentingSettings settings, IGetWebpageCommentingInfo getWebpageCommentingInfo, ISession session, IStringResourceProvider stringResourceProvider)
 {
     _settings = settings;
     _getWebpageCommentingInfo = getWebpageCommentingInfo;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #4
0
 public UserAccountController(IUserManagementService userManagementService, IPasswordManagementService passwordManagementService, IAuthorisationService authorisationService, IStringResourceProvider stringResourceProvider)
 {
     _userManagementService     = userManagementService;
     _passwordManagementService = passwordManagementService;
     _authorisationService      = authorisationService;
     _stringResourceProvider    = stringResourceProvider;
 }
コード例 #5
0
 public StringResourceAdminService(IStringResourceProvider provider, SiteSettings siteSettings, 
     ISession session)
 {
     _provider = provider;
     _siteSettings = siteSettings;
     _session = session;
 }
コード例 #6
0
 public PerformWarehousedStockBulkUpdate(IStatelessSession statelessSession, Site site,
                                         IStringResourceProvider stringResourceProvider)
 {
     _statelessSession       = statelessSession;
     _site                   = site;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #7
0
 public UpdatePasswordService(IPasswordManagementService passwordManagementService, 
     ISession session, IStringResourceProvider stringResourceProvider)
 {
     _passwordManagementService = passwordManagementService;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #8
0
 public CommentsUIService(CommentingSettings settings, IGetWebpageCommentingInfo getWebpageCommentingInfo, ISession session, IStringResourceProvider stringResourceProvider)
 {
     _settings = settings;
     _getWebpageCommentingInfo = getWebpageCommentingInfo;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #9
0
 public CommentingUserAccountController(IUniqueUsernameService uniqueUsernameService, IUniquePageService uniquePageService, ICommentInfoUiService commentInfoUiService, IStringResourceProvider stringResourceProvider)
 {
     _uniqueUsernameService = uniqueUsernameService;
     _uniquePageService = uniquePageService;
     _commentInfoUiService = commentInfoUiService;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #10
0
 public PerformWarehousedStockBulkUpdate(IStatelessSession statelessSession, Site site,
     IStringResourceProvider stringResourceProvider)
 {
     _statelessSession = statelessSession;
     _site = site;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #11
0
 public MoveWebpageAdminService(IRepository <Webpage> webpageRepository, IStringResourceProvider resourceProvider, IWebpageUrlService webpageUrlService, ICreateUpdateUrlBatch createUpdateUrlBatch)
 {
     _webpageRepository    = webpageRepository;
     _resourceProvider     = resourceProvider;
     _webpageUrlService    = webpageUrlService;
     _createUpdateUrlBatch = createUpdateUrlBatch;
 }
コード例 #12
0
ファイル: LoginPanel.ascx.cs プロジェクト: lulzzz/BrandStore
    public override void SetModel(IAccountModel model, IStringResourceProvider stringResourceProvider)
    {
        base.SetModel(model, stringResourceProvider);

        this.Model.LostPasswordSent += new LostPasswordSentHandler(AccountModel_LostPasswordSent);
        this.Model.PasswordChanged  += new PasswordChangedHandler(AccountModel_PasswordChanged);
    }
コード例 #13
0
 public PerformSimpleBulkUpdate(IStatelessSession statelessSession, Site site, IStringResourceProvider stringResourceProvider)
 {
     _statelessSession       = statelessSession;
     _site                   = site;
     _stringResourceProvider = stringResourceProvider;
     _variantsToUpdate       = new HashSet <ProductVariant>();
 }
コード例 #14
0
 public UpdatePasswordService(IPasswordManagementService passwordManagementService,
                              ISession session, IStringResourceProvider stringResourceProvider)
 {
     _passwordManagementService = passwordManagementService;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #15
0
 public TestSmtpSettings(IGetSmtpClient getSmtpClient, ErrorSignal errorSignal, IStringResourceProvider resourceProvider, Site site)
 {
     _getSmtpClient    = getSmtpClient;
     _errorSignal      = errorSignal;
     _resourceProvider = resourceProvider;
     _site             = site;
 }
コード例 #16
0
 public GetEcommerceUserLinks(IUniquePageService uniquePageService,
                              IStringResourceProvider stringResourceProvider, IGetUserAccountLinks getUserAccountLinks)
 {
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
     _getUserAccountLinks    = getUserAccountLinks;
 }
コード例 #17
0
 public PerformSimpleBulkUpdate(IStatelessSession statelessSession, Site site, IStringResourceProvider stringResourceProvider)
 {
     _statelessSession = statelessSession;
     _site = site;
     _stringResourceProvider = stringResourceProvider;
     _variantsToUpdate = new HashSet<ProductVariant>();
 }
コード例 #18
0
 public CommentingUserAccountController(IUniqueUsernameService uniqueUsernameService, IUniquePageService uniquePageService, ICommentInfoUiService commentInfoUiService, IStringResourceProvider stringResourceProvider)
 {
     _uniqueUsernameService  = uniqueUsernameService;
     _uniquePageService      = uniquePageService;
     _commentInfoUiService   = commentInfoUiService;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #19
0
 public StockReportAdminService(
     IStringResourceProvider stringResourceProvider, EcommerceSettings ecommerceSettings,
     IGetStockExportData getStockExportData)
 {
     _stringResourceProvider = stringResourceProvider;
     _ecommerceSettings = ecommerceSettings;
     _getStockExportData = getStockExportData;
 }
コード例 #20
0
 public LowStockReportAdminService(IGetLowStockQuery getLowStockQuery,
                                   IStringResourceProvider stringResourceProvider,
                                   IGetStockReportFile getStockReportFile)
 {
     _getLowStockQuery       = getLowStockQuery;
     _stringResourceProvider = stringResourceProvider;
     _getStockReportFile     = getStockReportFile;
 }
コード例 #21
0
 public GiftCardUIService(ISession session, ICartManager cartManager, CartModel cart,
                          IStringResourceProvider stringResourceProvider)
 {
     _session                = session;
     _cartManager            = cartManager;
     _cart                   = cart;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #22
0
 public ExternalLoginController(IAuthenticationManager authenticationManager,
                                IExternalLoginService externalLoginService, IUniquePageService uniquePageService, IStringResourceProvider stringResourceProvider)
 {
     _authenticationManager  = authenticationManager;
     _externalLoginService   = externalLoginService;
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #23
0
 public LowStockReportAdminService(IGetLowStockQuery getLowStockQuery,
     IStringResourceProvider stringResourceProvider,
     IGetStockReportFile getStockReportFile)
 {
     _getLowStockQuery = getLowStockQuery;
     _stringResourceProvider = stringResourceProvider;
     _getStockReportFile = getStockReportFile;
 }
コード例 #24
0
 public StockReportAdminService(
     IStringResourceProvider stringResourceProvider, EcommerceSettings ecommerceSettings,
     IGetStockExportData getStockExportData)
 {
     _stringResourceProvider = stringResourceProvider;
     _ecommerceSettings      = ecommerceSettings;
     _getStockExportData     = getStockExportData;
 }
コード例 #25
0
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
                                    IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService      = uniquePageService;
     _cartModel              = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService  = orderPlacementService;
 }
コード例 #26
0
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
     IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService = uniquePageService;
     _cartModel = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService = orderPlacementService;
 }
コード例 #27
0
 public LoginController(IResetPasswordService resetPasswordService, IUniquePageService uniquePageService,
                        ILoginService loginService, IStringResourceProvider stringResourceProvider, IUserLookup userLookup)
 {
     _resetPasswordService   = resetPasswordService;
     _uniquePageService      = uniquePageService;
     _loginService           = loginService;
     _stringResourceProvider = stringResourceProvider;
     _userLookup             = userLookup;
 }
コード例 #28
0
 public GetProductCardModel(ISession session, IProductVariantAvailabilityService productVariantAvailabilityService, IStringResourceProvider stringResourceProvider, 
     EcommerceSettings ecommerceSettings, ProductReviewSettings productReviewSettings)
 {
     _session = session;
     _productVariantAvailabilityService = productVariantAvailabilityService;
     _stringResourceProvider = stringResourceProvider;
     _ecommerceSettings = ecommerceSettings;
     _productReviewSettings = productReviewSettings;
 }
コード例 #29
0
 public GetProductCardModel(ISession session, IProductVariantAvailabilityService productVariantAvailabilityService, IStringResourceProvider stringResourceProvider,
                            EcommerceSettings ecommerceSettings, ProductReviewSettings productReviewSettings)
 {
     _session = session;
     _productVariantAvailabilityService = productVariantAvailabilityService;
     _stringResourceProvider            = stringResourceProvider;
     _ecommerceSettings     = ecommerceSettings;
     _productReviewSettings = productReviewSettings;
 }
コード例 #30
0
    public override void SetModel(IAccountModel model, IStringResourceProvider stringResourceProvider)
    {
        base.SetModel(model, stringResourceProvider);

        this.BillingAddressUKEditView.SetModel(this.Model.BillingAddress, this.StringResourceProvider);
        this.BillingAddressUSEditView.SetModel(this.Model.BillingAddress, this.StringResourceProvider);
        this.BillingAddressStaticView.SetModel(this.Model.BillingAddress, this.StringResourceProvider);
        this.AddressBookView.SetModel(this.Model, this.StringResourceProvider);
    }
コード例 #31
0
 public AdminWebpageSearchService(ISearcher <Webpage, AdminWebpageIndexDefinition> documentSearcher,
                                  IGetBreadcrumbs getBreadcrumbs, ISession session, Site site, IStringResourceProvider stringResourceProvider)
 {
     _documentSearcher       = documentSearcher;
     _getBreadcrumbs         = getBreadcrumbs;
     _session                = session;
     _site                   = site;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #32
0
 public AdminWebpageSearchService(ISearcher<Webpage, AdminWebpageIndexDefinition> documentSearcher,
     IGetBreadcrumbs getBreadcrumbs, ISession session, Site site, IStringResourceProvider stringResourceProvider)
 {
     _documentSearcher = documentSearcher;
     _getBreadcrumbs = getBreadcrumbs;
     _session = session;
     _site = site;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #33
0
 public ContactUsController(NoticeProvider noticeProvider,
                            IStringResourceProvider stringResourceProvider,
                            CaptchaVerificationProvider captchaVerificationProvider)
 {
     NoticeProvider              = noticeProvider;
     StringResourceProvider      = stringResourceProvider;
     CaptchaVerificationProvider = captchaVerificationProvider;
     Settings        = new ContactUsSettings();
     CaptchaSettings = new CaptchaSettings();
 }
コード例 #34
0
 public FileAdminService(IFileService fileService, ISession session,
                         IStringResourceProvider stringResourceProvider, IDocumentService documentService,
                         MediaSettings mediaSettings)
 {
     _fileService            = fileService;
     _session                = session;
     _stringResourceProvider = stringResourceProvider;
     _documentService        = documentService;
     _mediaSettings          = mediaSettings;
 }
コード例 #35
0
 public LoginController(IUserService userService, IResetPasswordService resetPasswordService, IAuthorisationService authorisationService, IUniquePageService uniquePageService,
                        ILoginService loginService, IStringResourceProvider stringResourceProvider)
 {
     _userService            = userService;
     _resetPasswordService   = resetPasswordService;
     _authorisationService   = authorisationService;
     _uniquePageService      = uniquePageService;
     _loginService           = loginService;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #36
0
ファイル: FileAdminService.cs プロジェクト: neozhu/MrCMS
 public FileAdminService(IFileService fileService, ISession session,
     IStringResourceProvider stringResourceProvider, IDocumentService documentService,
     MediaSettings mediaSettings)
 {
     _fileService = fileService;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
     _documentService = documentService;
     _mediaSettings = mediaSettings;
 }
コード例 #37
0
    public override void SetModel(IPaymentModel model, IStringResourceProvider stringResourceProvider)
    {
        base.SetModel(model, stringResourceProvider);

        this.BillingAddressChoice.SetModel(model.AccountModel, this.StringResourceProvider);

        CodPaymentView.SetModel(null, this.StringResourceProvider);
        CreditCardPaymentForm.SetModel(null, this.StringResourceProvider);
        SecureNetPaymentView.SetModel(null, this.StringResourceProvider);
        TwoCheckoutPaymentView.SetModel(null, this.StringResourceProvider);
        CheckPaymentView.SetModel(null, this.StringResourceProvider);
        RequestQuoteView.SetModel(null, this.StringResourceProvider);
        PayPalPaymentView.SetModel(null, this.StringResourceProvider);
        PurchaseOrderPaymentView.SetModel(null, this.StringResourceProvider);
        PayPalExpressView.SetModel(null, this.StringResourceProvider);
        MicroPayPaymentView.SetModel(null, this.StringResourceProvider);
        CheckOutByAmazonPaymentView.SetModel(null, this.StringResourceProvider);
        PayPalEmbeddedCheckoutPaymentView.SetModel(null, this.StringResourceProvider);
        MoneybookersQuickCheckoutPaymentView.SetModel(null, this.StringResourceProvider);
        ECheckPaymentView.SetModel(null, this.StringResourceProvider);
        WorldPayPaymentView.SetModel(null, this.StringResourceProvider);

        foreach (var paymentModel in this.Model.PaymentMethods)
        {
            var paymentView = FindPaymentMethodView(paymentModel.Key);
            if (paymentView != null)
            {
                paymentView.SetModel(paymentModel.Value, this.StringResourceProvider);
                ((IPaymentMethodView)paymentView).PaymentFormSubmitted += OPCControls_PaymentFormAndBillingAddress_PaymentFormSubmitted;
            }

            if (paymentModel.Value.PaymentType == PaymentType.SecureNet)
            {
                SecureNetPaymentView.ExistingCreditCardSelected += (o, e) => CreditCardPaymentForm.Hide();
                SecureNetPaymentView.NewCreditCardSelected      += (o, e) =>
                {
                    CreditCardPaymentForm.Initialize();
                    CreditCardPaymentForm.Show();
                    CreditCardPaymentForm.BindView();
                };

                Model.ProcessingPayment += (o, e) =>
                {
                    if (!(e.PaymentMethod is CreditCardPaymentModel) && !(e.PaymentMethod is SecureNetPaymentModel))
                    {
                        return;
                    }

                    ((SecureNetPaymentModel)paymentModel.Value).SwitchPaymentMethod();
                };
            }
        }

        this.ActivatePaymentView();
    }
コード例 #38
0
ファイル: MrCMSPage.cs プロジェクト: xubinvc/MrCMS
        public override void InitHelpers()
        {
            base.InitHelpers();

            if (CurrentRequestData.DatabaseIsInstalled)
            {
                _kernel = MrCMSApplication.Get <IKernel>();
                _stringResourceProvider = MrCMSApplication.Get <IStringResourceProvider>();
                GetCurrentLayout        = MrCMSApplication.Get <IGetCurrentLayout>();
            }
        }
コード例 #39
0
ファイル: FileAdminService.cs プロジェクト: thangnm11/MrCMS
 public FileAdminService(IFileService fileService, ISession session,
                         IStringResourceProvider stringResourceProvider, IRepository <MediaCategory> mediaCategoryRepository,
                         MediaSettings mediaSettings, IGetDocumentsByParent <MediaCategory> getDocumentsByParent)
 {
     _fileService             = fileService;
     _session                 = session;
     _stringResourceProvider  = stringResourceProvider;
     _mediaCategoryRepository = mediaCategoryRepository;
     _mediaSettings           = mediaSettings;
     _getDocumentsByParent    = getDocumentsByParent;
 }
コード例 #40
0
 public LoginController(IResetPasswordService resetPasswordService, IUniquePageService uniquePageService,
                        ILoginService loginService, IStringResourceProvider stringResourceProvider, IUserLookup userLookup,
                        ILogUserIn logUserIn, ISetVerifiedUserData setVerifiedUserData)
 {
     _resetPasswordService   = resetPasswordService;
     _uniquePageService      = uniquePageService;
     _loginService           = loginService;
     _stringResourceProvider = stringResourceProvider;
     _userLookup             = userLookup;
     _logUserIn           = logUserIn;
     _setVerifiedUserData = setVerifiedUserData;
 }
コード例 #41
0
 public SagePayPiController(
     NoticeProvider noticeProvider,
     IPaymentOptionProvider paymentOptionProvider,
     IPersistedCheckoutContextProvider persistedCheckoutContextProvider,
     IStringResourceProvider stringResourceProvider,
     AppConfigProvider appConfigProvider)
 {
     NoticeProvider                   = noticeProvider;
     PaymentOptionProvider            = paymentOptionProvider;
     PersistedCheckoutContextProvider = persistedCheckoutContextProvider;
     StringResourceProvider           = stringResourceProvider;
     AppConfigProvider                = appConfigProvider;
 }
コード例 #42
0
 public ExternalLoginController(IAuthenticationManager authenticationManager,
                                IExternalLoginService externalLoginService, IUniquePageService uniquePageService, IStringResourceProvider stringResourceProvider,
                                IGetVerifiedUserResult getVerifiedUserResult,
                                ILogUserIn logUserIn, ISetVerifiedUserData setVerifiedUserData)
 {
     _authenticationManager  = authenticationManager;
     _externalLoginService   = externalLoginService;
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
     _getVerifiedUserResult  = getVerifiedUserResult;
     _logUserIn           = logUserIn;
     _setVerifiedUserData = setVerifiedUserData;
 }
コード例 #43
0
ファイル: GetValidDiscounts.cs プロジェクト: neozhu/Ecommerce
 public GetValidDiscounts(ISession session, ICartDiscountApplicationService cartDiscountApplicationService, IStringResourceProvider stringResourceProvider)
 {
     _session = session;
     _cartDiscountApplicationService = cartDiscountApplicationService;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #44
0
 public OrderExportService(ISession session, IStringResourceProvider stringResourceProvider)
 {
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #45
0
 public WarehouseAdminService(ISession session, IStringResourceProvider stringResourceProvider)
 {
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #46
0
 public StringResourceUpdateService(IStringResourceProvider provider, ISession session)
 {
     _provider = provider;
     _session = session;
 }
コード例 #47
0
ファイル: AllImagesHaveAltTags.cs プロジェクト: neozhu/MrCMS
 public AllImagesHaveAltTags(IStringResourceProvider stringResourceProvider)
 {
     _stringResourceProvider = stringResourceProvider;
 }