示例#1
0
 public BrandViewModelService(
     IBrandService brandService,
     IBrandLayoutService brandLayoutService,
     ICustomerService customerService,
     ISlugService slugService,
     IPictureService pictureService,
     ITranslationService translationService,
     IDiscountService discountService,
     ICustomerActivityService customerActivityService,
     IDateTimeService dateTimeService,
     ILanguageService languageService,
     IWorkContext workContext,
     SeoSettings seoSettings)
 {
     _brandLayoutService      = brandLayoutService;
     _brandService            = brandService;
     _customerService         = customerService;
     _slugService             = slugService;
     _pictureService          = pictureService;
     _translationService      = translationService;
     _discountService         = discountService;
     _customerActivityService = customerActivityService;
     _dateTimeService         = dateTimeService;
     _languageService         = languageService;
     _workContext             = workContext;
     _seoSettings             = seoSettings;
 }
示例#2
0
 public CreateBoardCommandHandler(IDataContext dataContext, IMappingService mappingService,
                                  ISlugService slugService)
 {
     this.dataContext    = dataContext;
     this.mappingService = mappingService;
     this.slugService    = slugService;
 }
示例#3
0
        private async Task <string> GetRouteParam(string first, string second, string third, RouteParams paramType)
        {
            ISlugService service = paramType == RouteParams.City
                                ? this.cityService
                                : paramType == RouteParams.Type
                                        ? (ISlugService)this.escortTypeService
                                        : paramType == RouteParams.Service
                                                ? this.serviceService
                                                : null;

            if (service == null)
            {
                throw new ArgumentException($"Unknown {nameof(paramType)}: {paramType}");
            }

            if (await service.IsSlugExists(first))
            {
                return(first);
            }
            if (await service.IsSlugExists(second))
            {
                return(second);
            }
            if (await service.IsSlugExists(third))
            {
                return(third);
            }

            return(string.Empty);
            // throw new ArgumentException($"Unkown route: {first}/{second}/{third}");
        }
示例#4
0
 public VendorController(
     IWorkContext workContext,
     ITranslationService translationService,
     ICustomerService customerService,
     IGroupService groupService,
     IMessageProviderService messageProviderService,
     IVendorService vendorService,
     ISlugService slugService,
     IPictureService pictureService,
     ICountryService countryService,
     IMediator mediator,
     LanguageSettings languageSettings,
     VendorSettings vendorSettings,
     CaptchaSettings captchaSettings,
     CommonSettings commonSettings)
 {
     _workContext            = workContext;
     _translationService     = translationService;
     _customerService        = customerService;
     _groupService           = groupService;
     _messageProviderService = messageProviderService;
     _vendorService          = vendorService;
     _slugService            = slugService;
     _pictureService         = pictureService;
     _countryService         = countryService;
     _mediator         = mediator;
     _languageSettings = languageSettings;
     _vendorSettings   = vendorSettings;
     _captchaSettings  = captchaSettings;
     _commonSettings   = commonSettings;
 }
        public static async Task SeedCategoryAsync(ApplicationDbContext _context, ISlugService _slugService)
        {
            if (_context.Category.ToList().Count() == 0)
            {
                Category Foods = new Category
                {
                    Name        = "Food",
                    Description = "Food Food Food Food Food Food",
                    Slug        = _slugService.URLFriendly("Food")
                };
                await _context.AddAsync(Foods);

                await _context.SaveChangesAsync();

                Category Drinks = new Category
                {
                    Name        = "Drinks",
                    Description = "Drinks Drinks Drinks Drinks Drinks Drinks Drinks Drinks",
                    Slug        = _slugService.URLFriendly("Drinks")
                };
                await _context.AddAsync(Drinks);

                await _context.SaveChangesAsync();

                Category Snacks = new Category
                {
                    Name        = "Snacks",
                    Description = "Snacks Snacks Snacks Snacks Snacks Snacks Snacks",
                    Slug        = _slugService.URLFriendly("Snacks")
                };
                await _context.AddAsync(Snacks);

                await _context.SaveChangesAsync();
            }
        }
 public ProjectService(IDomainManagerService domainManagerService,
                       IIdentityService identityService,
                       IOrganizationRepository organizationRepository,
                       IProjectRepository projectRepository,
                       IProjectFeatureRepository projectFeatureRepository,
                       IUserRepository userRepository,
                       IProjectTemplateRepository projectTemplateRepository,
                       Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                       Func <ConfigurationManagementService, ICMSService> cmsService,
                       IEventBusService eventBusService,
                       ISlugService slugService,
                       IActivityMonitorService activityMonitorService,
                       IDataProtectorService dataProtectorService)
 {
     _domainManagerService      = domainManagerService;
     _identityService           = identityService;
     _organizationRepository    = organizationRepository;
     _projectRepository         = projectRepository;
     _projectFeatureRepository  = projectFeatureRepository;
     _userRepository            = userRepository;
     _projectTemplateRepository = projectTemplateRepository;
     _cmsService           = cmsService;
     _cmsCredentialService = cmsCredentialService;
     _eventBusService      = eventBusService;
     _slugService          = slugService;
     _correlationId        = activityMonitorService.GetCorrelationId();
     _dataProtectorService = dataProtectorService;
 }
 public CollectionViewModelService(
     ICollectionService collectionService,
     IProductCollectionService productCollectionService,
     ICollectionLayoutService collectionLayoutService,
     IProductService productService,
     ICustomerService customerService,
     IStoreService storeService,
     ISlugService slugService,
     IPictureService pictureService,
     ITranslationService translationService,
     IDiscountService discountService,
     ICustomerActivityService customerActivityService,
     IVendorService vendorService,
     IDateTimeService dateTimeService,
     ILanguageService languageService,
     IWorkContext workContext,
     SeoSettings seoSettings)
 {
     _collectionLayoutService  = collectionLayoutService;
     _collectionService        = collectionService;
     _productCollectionService = productCollectionService;
     _productService           = productService;
     _customerService          = customerService;
     _storeService             = storeService;
     _slugService             = slugService;
     _pictureService          = pictureService;
     _translationService      = translationService;
     _discountService         = discountService;
     _customerActivityService = customerActivityService;
     _vendorService           = vendorService;
     _dateTimeService         = dateTimeService;
     _languageService         = languageService;
     _workContext             = workContext;
     _seoSettings             = seoSettings;
 }
示例#8
0
 public ReportController(
     IOrchardServices services,
     IProcessService processService,
     ISortService sortService,
     ISecureFileService secureFileService,
     ICfgService cfgService,
     ISlugService slugService,
     IAppDataFolder appDataFolder,
     IClock clock,
     IBatchCreateService batchCreateService,
     IBatchWriteService batchWriteService,
     IBatchRunService batchRunService,
     IBatchRedirectService batchRedirectService,
     IFileService fileService
     )
 {
     _orchardServices      = services;
     _processService       = processService;
     _secureFileService    = secureFileService;
     _sortService          = sortService;
     _batchCreateService   = batchCreateService;
     _batchWriteService    = batchWriteService;
     _batchRunService      = batchRunService;
     _batchRedirectService = batchRedirectService;
     T      = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
示例#9
0
 public BikeModelService(IMapper mapper,
                         IBikeModelRepository bikeModelRepository,
                         ISlugService slugService)
 {
     _mapper = mapper;
     _bikeModelRepository = bikeModelRepository;
     _slugService         = slugService;
 }
示例#10
0
 public ArgumentController(IArgumentService argumentService, ICategoryService categoryService, IPostService postService, ISlugService slugService, IPhotoService photoService)
 {
     this._argumentService = argumentService;
     this._categoryService = categoryService;
     this._postService     = postService;
     this._slugService     = slugService;
     this._photoService    = photoService;
 }
示例#11
0
 public SiteTreeController(ICommonService commonService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, ISlugService slugService)
 {
     this._commonService   = commonService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._slugService     = slugService;
 }
示例#12
0
 public ManufacturerService(IMapper mapper,
                            IManufacturerRepository manufacturerRepository,
                            ISlugService slugService)
 {
     _mapper = mapper;
     _manufacturerRepository = manufacturerRepository;
     _slugService            = slugService;
 }
 public SlugRouteTransformer(
     ISlugService slugService,
     ILanguageService languageService,
     AppConfig config)
 {
     _slugService     = slugService;
     _languageService = languageService;
     _config          = config;
 }
示例#14
0
 public CategoryPostsController(
     ApplicationDbContext context,
     ISlugService slugService,
     IImageService imageService)
 {
     _context      = context;
     _slugService  = slugService;
     _imageService = imageService;
 }
 public LeverPostingService(ILogger <LeverPostingService> logger, IPostingApiService postingApiService, ISession session, IShellHost shellHost, ShellSettings shellSettings, ISiteService siteService, ISlugService slugService)
 {
     _logger            = logger;
     _postingApiService = postingApiService;
     _session           = session;
     _shellSettings     = shellSettings;
     _shellHost         = shellHost;
     _siteService       = siteService;
     _slugService       = slugService;
 }
 public SitemapHelperService(
     ISlugService slugService,
     ISitemapManager sitemapManager,
     IStringLocalizer <SitemapHelperService> stringLocalizer
     )
 {
     _slugService    = slugService;
     _sitemapManager = sitemapManager;
     S = stringLocalizer;
 }
示例#17
0
 public ReportController(
     IReportService reportService,
     ISlugService slugService,
     CombinedLogger <ReportController> logger
     )
 {
     _reportService = reportService;
     _slugService   = slugService;
     _logger        = logger;
 }
 public SuccessStoryController(CoreSettings coreSettings, IPermissionService permissionService, ISuccessStoryService successStoryService, IUserService userService, ISlugService slugService, IMediaService mediaService, IWebHelper webHelper)
 {
     _coreSettings = coreSettings;
     _mediaService = mediaService;
     _permissionService = permissionService;
     _successStoryService = successStoryService;
     _slugService = slugService;
     _userService = userService;
     _webHelper = webHelper;
 }
示例#19
0
 public RewriteController(ISlugService slugService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, IReviewService reviewService)
 {
     this._slugService     = slugService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._reviewService   = reviewService;
 }
示例#20
0
 public DisqusMappingService(IOrchardServices services,
                             ICommentService commentService,
                             IRepository<DisqusMappingRecord> threadMappingRepository,
                             IRepository<DisqusPostMappingRecord> postMappingRepository, ISlugService slugs)
 {
     this.services = services;
     this.threadMappingRepository = threadMappingRepository;
     this.postMappingRepository = postMappingRepository;
     this.slugs = slugs;
     this.commentService = commentService;
 }
示例#21
0
 public JobController(
     UserManager <ApplicationUser> userManager,
     IJobPostsService jobPostsService,
     ITagService tagService,
     ISlugService slugService)
 {
     this.userManager     = userManager;
     this.jobPostsService = jobPostsService;
     this.tagService      = tagService;
     this.slugService     = slugService;
 }
 public MapController(
     IReportService reportService,
     ISlugService slugService,
     ISettingsService settings,
     CombinedLogger <ReportController> logger
     )
 {
     _reportService = reportService;
     _settings      = settings;
     _logger        = logger;
 }
示例#23
0
 public PostController(ICommonService commonService, IPostService postService, ICategoryService categoryService, IArgumentService argumentService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, ISlugService slugService)
 {
     this._commonService   = commonService;
     this._postService     = postService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._slugService     = slugService;
 }
 public BlogMLImporter(ILogger <BlogMLImporter> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, IIPAddressService iPAddressService, ISlugService slugService)
 {
     _logger           = logger;
     _postService      = postService;
     _pageService      = pageService;
     _categoryService  = categoryService;
     _tagsService      = tagsService;
     _commentService   = commentService;
     _iPAddressService = iPAddressService;
     _slugService      = slugService;
 }
示例#25
0
 public HomeController(ILogger <HomeController> logger, IPhotoService photoService, IPodcastService podcastService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, ISlugService slugService, IHomeService homeService)
 {
     _logger               = logger;
     this._photoService    = photoService;
     this._podcastService  = podcastService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._slugService     = slugService;
     this._homeService     = homeService;
 }
示例#26
0
 public PhotoSubmitService(
     IMediaService mediaService,
     IActionSubmitService actionSubmitService,
     IContentManager contentManager,
     ISlugService slugService)
 {
     _mediaService        = mediaService;
     _actionSubmitService = actionSubmitService;
     _contentManager      = contentManager;
     _slugService         = slugService;
 }
 public CfgController(
     IOrchardServices services,
     ICfgService cfgService,
     ISlugService slugService
     )
 {
     _orchardServices = services;
     _cfgService      = cfgService;
     _slugService     = slugService;
     T      = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
 public BlogMLExporter(ILogger <BlogMLExporter> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, ISlugService slugService, BlogUserManager userManager, BasicSettings basicSettings)
 {
     _logger          = logger;
     _postService     = postService;
     _pageService     = pageService;
     _categoryService = categoryService;
     _tagsService     = tagsService;
     _commentService  = commentService;
     _slugService     = slugService;
     _userManager     = userManager;
     _basicSettings   = basicSettings;
 }
 public PageViewModelService(IPageLayoutService pageLayoutService, IPageService pageService, ISlugService slugService, ITranslationService translationService,
                             ICustomerActivityService customerActivityService, IStoreService storeService, ILanguageService languageService, IDateTimeService dateTimeService, SeoSettings seoSettings)
 {
     _pageLayoutService       = pageLayoutService;
     _pageService             = pageService;
     _slugService             = slugService;
     _translationService      = translationService;
     _customerActivityService = customerActivityService;
     _storeService            = storeService;
     _languageService         = languageService;
     _dateTimeService         = dateTimeService;
     _seoSettings             = seoSettings;
 }
示例#30
0
 public KnowledgebaseViewModelService(ITranslationService translationService,
                                      IKnowledgebaseService knowledgebaseService, ICustomerActivityService customerActivityService,
                                      ICustomerService customerService, IDateTimeService dateTimeService, ISlugService slugService,
                                      ILanguageService languageService, SeoSettings seoSettings)
 {
     _translationService      = translationService;
     _knowledgebaseService    = knowledgebaseService;
     _customerActivityService = customerActivityService;
     _customerService         = customerService;
     _dateTimeService         = dateTimeService;
     _slugService             = slugService;
     _languageService         = languageService;
     _seoSettings             = seoSettings;
 }
 public InternalProjectService(IDomainManagerService domainManagerService,
                               Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                               Func <ConfigurationManagementService, ICMSService> cmsService,
                               IProjectRepository projectRepository,
                               ISlugService slugService,
                               IOptions <FakeAccountServiceOptions> vstsFakeOptions)
 {
     _domainManagerService = domainManagerService;
     _projectRepository    = projectRepository;
     _cmsService           = cmsService;
     _cmsCredentialService = cmsCredentialService;
     _vstsFakeOptions      = vstsFakeOptions;
     _slugService          = slugService;
 }
示例#32
0
 public CopyProductService(IProductService productService,
                           ILanguageService languageService,
                           IPictureService pictureService,
                           IDownloadService downloadService,
                           ISlugService slugService,
                           SeoSettings seoSettings)
 {
     _productService  = productService;
     _languageService = languageService;
     _pictureService  = pictureService;
     _downloadService = downloadService;
     _slugService     = slugService;
     _seoSettings     = seoSettings;
 }
示例#33
0
 public SlugTokens(ISlugService slugService) {
     T = NullLocalizer.Instance;
     _slugService = slugService;
 }
示例#34
0
 public SlugTokens(ISlugService slugService, IHomeAliasService homeAliasService) {
     T = NullLocalizer.Instance;
     _slugService = slugService;
     _homeAliasService = homeAliasService;
 }