Esempio n. 1
0
 public NivoSliderPlugin(IResimServisi resimServisi,
                         IAyarlarServisi ayarlarServisi, IWebYardımcısı webYardımcısı)
 {
     this._resimServisi   = resimServisi;
     this._ayarlarServisi = ayarlarServisi;
     this._webYardımcısı  = webYardımcısı;
 }
Esempio n. 2
0
 public IpAdresiKaydetFilter(IKullanıcıServisi kullanıcıServisi,
                             IWebYardımcısı webHelper,
                             IWorkContext workContext,
                             KullanıcıAyarları kullanıcıAyarları)
 {
     this._kullanıcıServisi  = kullanıcıServisi;
     this._webHelper         = webHelper;
     this._workContext       = workContext;
     this._kullanıcıAyarları = kullanıcıAyarları;
 }
Esempio n. 3
0
 public SonZiyaretEdilenSayfaFilter(KullanıcıAyarları kullanıcıAyarları,
                                    IGenelÖznitelikServisi genelÖznitelikServisi,
                                    IWebYardımcısı webHelper,
                                    IWorkContext workContext)
 {
     this._kullanıcıAyarları     = kullanıcıAyarları;
     this._genelÖznitelikServisi = genelÖznitelikServisi;
     this._webHelper             = webHelper;
     this._workContext           = workContext;
 }
        public async Task Invoke(Microsoft.AspNetCore.Http.HttpContext context, IWebYardımcısı webHelper)
        {
            var accept = context.Request.Headers[HeaderNames.AcceptEncoding];

            if (!StringValues.IsNullOrEmpty(accept))
            {
                context.Response.Headers.Append(HeaderNames.Vary, HeaderNames.AcceptEncoding);
            }
            await _next(context);
        }
            protected virtual string ExcludeQueryStringParams(string url, IWebYardımcısı webHelper)
            {
                //comma separated list of parameters to exclude
                const string excludedQueryStringParams         = "pagenumber";
                var          excludedQueryStringParamsSplitted = excludedQueryStringParams.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

                foreach (string exclude in excludedQueryStringParamsSplitted)
                {
                    url = webHelper.SorguSil(url, exclude);
                }
                return(url);
            }
 public VarsayılanLogger(IDepo <Log> logDepo,
                         IWebYardımcısı webYardımcısı,
                         IDbContext dbContext,
                         IDataSağlayıcı dataSağlayıcı,
                         GenelAyarlar genelAyarlar)
 {
     this._logDepo       = logDepo;
     this._webYardımcısı = webYardımcısı;
     this._dbContext     = dbContext;
     this._dataSağlayıcı = dataSağlayıcı;
     this._genelAyarlar  = genelAyarlar;
 }
 public async Task Invoke(HttpContext context, IWebYardımcısı webHelper)
 {
     if (DataAyarlarıYardımcısı.DatabaseYüklendi())
     {
         //keep alive page requested (we ignore it to prevent creating a guest customer records)
         var keepAliveUrl = $"{webHelper.SiteKonumuAl()}keepalive/index";
         if (webHelper.SayfanınUrlsiniAl(false).StartsWith(keepAliveUrl, StringComparison.InvariantCultureIgnoreCase))
         {
             return;
         }
     }
     //or call the next middleware in the request pipeline
     await _next(context);
 }
        public async Task Invoke(Microsoft.AspNetCore.Http.HttpContext context, IWebYardımcısı webHelper)
        {
            //whether database is installed
            if (!DataAyarlarıYardımcısı.DatabaseYüklendi())
            {
                var installUrl = $"{webHelper.SiteKonumuAl()}install";
                if (!webHelper.SayfanınUrlsiniAl(false).StartsWith(installUrl, StringComparison.InvariantCultureIgnoreCase))
                {
                    //redirect
                    context.Response.Redirect(installUrl);
                    return;
                }
            }

            //or call the next middleware in the request pipeline
            await _next(context);
        }
Esempio n. 9
0
        public GenelModelFactory(IKategoriServisi categoryService,
                                 ISayfalarServisi topicService,
                                 ILanguageService languageService,
                                 ILocalizationService localizationService,
                                 IWorkContext workContext,
                                 ISiteContext storeContext,
                                 ITemaContext themeContext,
                                 ITemaSağlayıcı themeProvider,
                                 IForumServisi forumservice,
                                 IGenelÖznitelikServisi genericAttributeService,
                                 IWebYardımcısı webHelper,
                                 IİzinServisi permissionService,
                                 IStatikÖnbellekYönetici cacheManager,
                                 ISayfaHeadOluşturucu pageHeadBuilder,
                                 IResimServisi pictureService,
                                 IHostingEnvironment hostingEnvironment,

                                 KatalogAyarları catalogSettings,
                                 SiteBilgiAyarları storeInformationSettings,
                                 GenelAyarlar commonSettings,
                                 BlogAyarları blogSettings,
                                 ForumAyarları forumSettings,
                                 LocalizationSettings localizationSettings)
        {
            this._categoryService         = categoryService;
            this._topicService            = topicService;
            this._languageService         = languageService;
            this._localizationService     = localizationService;
            this._workContext             = workContext;
            this._storeContext            = storeContext;
            this._themeContext            = themeContext;
            this._themeProvider           = themeProvider;
            this._genericAttributeService = genericAttributeService;
            this._webHelper                = webHelper;
            this._permissionService        = permissionService;
            this._cacheManager             = cacheManager;
            this._pageHeadBuilder          = pageHeadBuilder;
            this._pictureService           = pictureService;
            this._hostingEnvironment       = hostingEnvironment;
            this._catalogSettings          = catalogSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._commonSettings           = commonSettings;
            this._blogSettings             = blogSettings;
            this._forumSettings            = forumSettings;
            this._localizationSettings     = localizationSettings;
        }
Esempio n. 10
0
 public ResimServisi(IDepo <Resim> pictureRepository,
                     IAyarlarServisi ayarlarServisi,
                     IWebYardımcısı webYardımcısı,
                     ILogger logger,
                     IDbContext dbContext,
                     IOlayYayınlayıcı olayYayınlayıcısı,
                     MedyaAyarları medyaAyarları,
                     IDataSağlayıcı dataSağlayıcı)
 {
     this._resimDepo         = pictureRepository;
     this._ayarlarServisi    = ayarlarServisi;
     this._webYardımcısı     = webYardımcısı;
     this._logger            = logger;
     this._dbContext         = dbContext;
     this._olayYayınlayıcısı = olayYayınlayıcısı;
     this._medyaAyarları     = medyaAyarları;
     this._dataSağlayıcı     = dataSağlayıcı;
 }
 public KullanıcıİşlemServisi(IDepo <İşlemTipi> işlemTipiDepo,
                              IDepo <İşlem> işlemDepo,
                              IÖnbellekYönetici önbellekYönetici,
                              IWebYardımcısı webYardımcısı,
                              IWorkContext workContext,
                              IDbContext dbContext,
                              IDataSağlayıcı dataSağlayıcı,
                              GenelAyarlar genelAyarlar)
 {
     this._işlemTipiDepo    = işlemTipiDepo;
     this._işlemDepo        = işlemDepo;
     this._önbellekYönetici = önbellekYönetici;
     this._webYardımcısı    = webYardımcısı;
     this._workContext      = workContext;
     this._dbContext        = dbContext;
     this._dataSağlayıcı    = dataSağlayıcı;
     this._genelAyarlar     = genelAyarlar;
 }
        public AzurePictureService(IDepo <Resim> resimDepo,
                                   IAyarlarServisi ayarlarServisi,
                                   IWebYardımcısı webYardımcısı,
                                   ILogger logger,
                                   IDbContext dbContext,
                                   IOlayYayınlayıcı olayYayınlayıcı,
                                   IStatikÖnbellekYönetici önbellekYönetici,
                                   MedyaAyarları medyaAyarları,
                                   Config config,
                                   IDataSağlayıcı dataSağlayıcı,
                                   IHostingEnvironment hostingEnvironment)
            : base(resimDepo,
                   ayarlarServisi,
                   webYardımcısı,
                   logger,
                   dbContext,
                   olayYayınlayıcı,
                   medyaAyarları,
                   dataSağlayıcı,
                   hostingEnvironment)
        {
            this._önbellekYönetici = önbellekYönetici;
            this._medyaAyarları    = medyaAyarları;
            this._config           = config;

            if (string.IsNullOrEmpty(_config.AzureBlobStorageConnectionString))
            {
                throw new Exception("Azure connection string for BLOB is not specified");
            }

            if (string.IsNullOrEmpty(_config.AzureBlobStorageContainerName))
            {
                throw new Exception("Azure container name for BLOB is not specified");
            }

            if (string.IsNullOrEmpty(_config.AzureBlobStorageEndPoint))
            {
                throw new Exception("Azure end point for BLOB is not specified");
            }

            CreateCloudBlobContainer();
        }
Esempio n. 13
0
        protected void SetWorkingCulture(IWebYardımcısı webHelper, IWorkContext workContext)
        {
            if (!DataAyarlarıYardımcısı.DatabaseYüklendi())
            {
                return;
            }

            var adminAreaUrl = $"{webHelper.SiteKonumuAl()}admin";

            if (webHelper.SayfanınUrlsiniAl(false).StartsWith(adminAreaUrl, StringComparison.InvariantCultureIgnoreCase))
            {
                GenelYardımcı.TelerikKültürAyarla();
                workContext.Yönetici = true;
            }
            else
            {
                var culture = new CultureInfo(workContext.MevcutDil.DilKültürü);
                CultureInfo.CurrentCulture   = culture;
                CultureInfo.CurrentUICulture = culture;
            }
        }
            public virtual List <int> GetAlreadyFilteredSpecOptionIds(IWebYardımcısı webHelper)
            {
                var result = new List <int>();

                var alreadyFilteredSpecsStr = webHelper.Sorgu <string>(QUERYSTRINGPARAM);

                if (String.IsNullOrWhiteSpace(alreadyFilteredSpecsStr))
                {
                    return(result);
                }

                foreach (var spec in alreadyFilteredSpecsStr.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
                {
                    int specId;
                    int.TryParse(spec.Trim(), out specId);
                    if (!result.Contains(specId))
                    {
                        result.Add(specId);
                    }
                }
                return(result);
            }
Esempio n. 15
0
 public KullanıcıController(IKullanıcıModelFabrikası kullanıcıModelFabrikası,
                            KullanıcıAyarları kullanıcıAyarları,
                            IWorkContext workContext,
                            IKimlikDoğrulamaServisi kimlikDoğrulamaServisi,
                            IOlayYayınlayıcı olayYayınlayıcı,
                            IKullanıcıServisi kullanıcıServisi,
                            ISiteContext siteContext,
                            IKullanıcıKayıtServisi kullanıcıKayıtServisi,
                            IGenelÖznitelikServisi genelÖznitelikServisi,
                            IWebYardımcısı webYardımcısı,
                            SiteBilgiAyarları siteBilgiAyarları,
                            IİzinServisi izinServisi,
                            ITarihYardımcısı tarihYardımcısı,
                            IAçıkYetkilendirmeServisi açıkYetkilendirmeServisi,
                            ISiteServisi siteServisi,
                            IBültenAbonelikServisi bültenAbonelikServisi,
                            IÜlkeServisi ülkeServisi,
                            IKullanıcıİşlemServisi kullanıcıİşlemServisi)
 {
     this._kullanıcıModelFabrikası  = kullanıcıModelFabrikası;
     this._kullanıcıAyarları        = kullanıcıAyarları;
     this._workContext              = workContext;
     this._kimlikDoğrulamaServisi   = kimlikDoğrulamaServisi;
     this._olayYayınlayıcı          = olayYayınlayıcı;
     this._kullanıcıServisi         = kullanıcıServisi;
     this._siteContext              = siteContext;
     this._kullanıcıKayıtServisi    = kullanıcıKayıtServisi;
     this._genelÖznitelikServisi    = genelÖznitelikServisi;
     this._webYardımcısı            = webYardımcısı;
     this._siteBilgiAyarları        = siteBilgiAyarları;
     this._izinServisi              = izinServisi;
     this._tarihYardımcısı          = tarihYardımcısı;
     this._açıkYetkilendirmeServisi = açıkYetkilendirmeServisi;
     this._siteServisi              = siteServisi;
     this._bültenAbonelikServisi    = bültenAbonelikServisi;
     this._ülkeServisi              = ülkeServisi;
     this._kullanıcıİşlemServisi    = kullanıcıİşlemServisi;
 }
Esempio n. 16
0
 public Task Invoke(Microsoft.AspNetCore.Http.HttpContext context, IWebYardımcısı webHelper, IWorkContext workContext)
 {
     SetWorkingCulture(webHelper, workContext);
     return(_next(context));
 }
Esempio n. 17
0
 public WebSiteContext(ISiteServisi siteServisi, IWebYardımcısı webYardımcısı)
 {
     this._siteServisi   = siteServisi;
     this._webYardımcısı = webYardımcısı;
 }