Beispiel #1
0
 public ErrorController(IDomain domainService,
     IWebContent webContentService,
     IECommerce ecommerceService,
     IUser userService)
     : base(domainService, ecommerceService, userService, webContentService)
 {
 }
        /// <summary>
        /// 从IWebContent设置自身的内容
        /// </summary>
        public void SetFrom(IWebContent content)
        {
            //TODO
            throw new NotImplementedException();

            //从content摘取新闻信息
        }
Beispiel #3
0
 public ErrorController(IDomain domainService,
                        IWebContent webContentService,
                        IECommerce ecommerceService,
                        IUser userService)
     : base(domainService, ecommerceService, userService, webContentService)
 {
 }
Beispiel #4
0
        public SagePayController(IDomain domainService,
            IECommerce ecommerceService,
            IUser userService,
            IWebContent webContentService)
            : base(domainService, ecommerceService, userService, webContentService)
        {
            this.DomainService = domainService;
            this.ECommerceService = ecommerceService;
            this.UserService = userService;

            switch (this.DomainService.GetSettingsValue(BL.SettingsKey.sagePayMode, this.DomainID).ToLowerInvariant())
            {
                case "test":
                    ServerMode = VspServerMode.Test;
                    break;
                case "live":
                    ServerMode = VspServerMode.Live;
                    break;
                default:
                    ServerMode = VspServerMode.Simulator;
                    break;
            }

            switch (this.DomainService.GetSettingsValue(BL.SettingsKey.sagePayMethod, this.DomainID).ToLowerInvariant())
            {
                case "direct":
                    PaymentType = PaymentType.Direct;
                    break;
                default:
                    PaymentType = PaymentType.Server;
                    break;
            }
        }
Beispiel #5
0
        public WebHost(string basePath, IWebContent content, int port)
        {
            IsRunning = false;

            this.content = content;
            content.SetBasePath(basePath);

            Port = port;
        }
Beispiel #6
0
        public WebHost(string basePath, IWebContent content, int port)
        {
            IsRunning = false;

            this.content = content;
            content.SetBasePath(basePath);

            Port = port;
        }
Beispiel #7
0
 public PayPalController(IDomain domainService,
     IECommerce ecommerceService,
     IUser userService,
     IWebContent webContentService)
     : base(domainService, ecommerceService, userService, webContentService)
 {
     this.DomainService = domainService;
     this.ECommerceService = ecommerceService;
     this.UserService = userService;
 }
Beispiel #8
0
 public PayPalController(IDomain domainService,
                         IECommerce ecommerceService,
                         IUser userService,
                         IWebContent webContentService)
     : base(domainService, ecommerceService, userService, webContentService)
 {
     this.DomainService    = domainService;
     this.ECommerceService = ecommerceService;
     this.UserService      = userService;
 }
Beispiel #9
0
 public StripeController(IDomain domainService,
     IECommerce ecommerceService,
     IUser userService,
     IWebContent webContentService,
     IStripe stripeService)
     : base(domainService, ecommerceService, userService, webContentService)
 {
     _domainService = domainService;
     _eCommerceService = ecommerceService;
     _stripeService = stripeService;
 }
Beispiel #10
0
 public StripeController(IDomain domainService,
                         IECommerce ecommerceService,
                         IUser userService,
                         IWebContent webContentService,
                         IStripe stripeService)
     : base(domainService, ecommerceService, userService, webContentService)
 {
     _domainService    = domainService;
     _eCommerceService = ecommerceService;
     _stripeService    = stripeService;
 }
Beispiel #11
0
 public AdmnController(IUser userService,
     IDomain domainService,
     IWebContent webContentService,
     IWebPages webPagesService,
     IECommerce ecommerceService,
     IPOI poiService,
     ITemplate templateService,
     IPortfolio portfolioService,
     IGallery galleryService)
     : base(domainService)
 {
     this.UserService = userService;
     this.DomainService = domainService;
     this.WebContentService = webContentService;
     this.WebPagesService = webPagesService;
     this.ECommerceService = ecommerceService;
     this.POIService = poiService;
     this.TemplateService = templateService;
     this.PortfolioService = portfolioService;
     this.GalleryService = galleryService;
 }
Beispiel #12
0
        public SagePayController(IDomain domainService,
                                 IECommerce ecommerceService,
                                 IUser userService,
                                 IWebContent webContentService)
            : base(domainService, ecommerceService, userService, webContentService)
        {
            this.DomainService    = domainService;
            this.ECommerceService = ecommerceService;
            this.UserService      = userService;

            switch (this.DomainService.GetSettingsValue(BL.SettingsKey.sagePayMode, this.DomainID).ToLowerInvariant())
            {
            case "test":
                ServerMode = VspServerMode.Test;
                break;

            case "live":
                ServerMode = VspServerMode.Live;
                break;

            default:
                ServerMode = VspServerMode.Simulator;
                break;
            }

            switch (this.DomainService.GetSettingsValue(BL.SettingsKey.sagePayMethod, this.DomainID).ToLowerInvariant())
            {
            case "direct":
                PaymentType = PaymentType.Direct;
                break;

            default:
                PaymentType = PaymentType.Server;
                break;
            }
        }
Beispiel #13
0
 public WebHost(string basePath, IWebContent content)
     : this(basePath, content, 8080)
 {
 }
Beispiel #14
0
 public WebHost(string basePath, IWebContent content)
     : this(basePath, content, 8080)
 {
 }
 public Api(ICache cache, ISettings settings, IWebContent webContent)
 {
     _cache = cache;
     _settings = settings;
     _webContent = webContent;
 }