コード例 #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;
 }
コード例 #5
0
        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();
            }
        }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #13
0
 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;
 }
コード例 #15
0
 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;
 }
コード例 #16
0
 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;
 }
コード例 #18
0
 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
ファイル: RewriteController.cs プロジェクト: Elorvetti/TreA
 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;
 }
コード例 #22
0
 public MapController(
     IReportService reportService,
     ISlugService slugService,
     ISettingsService settings,
     CombinedLogger <ReportController> logger
     )
 {
     _reportService = reportService;
     _settings      = settings;
     _logger        = logger;
 }
コード例 #23
0
ファイル: PostController.cs プロジェクト: Elorvetti/TreA
 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;
 }
コード例 #24
0
 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
ファイル: HomeController.cs プロジェクト: Elorvetti/TreA
 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;
 }
コード例 #27
0
 public CfgController(
     IOrchardServices services,
     ICfgService cfgService,
     ISlugService slugService
     )
 {
     _orchardServices = services;
     _cfgService      = cfgService;
     _slugService     = slugService;
     T      = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
コード例 #28
0
 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;
 }
コード例 #29
0
 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;
 }
コード例 #31
0
 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
ファイル: SlugTokens.cs プロジェクト: anycall/Orchard
 public SlugTokens(ISlugService slugService) {
     T = NullLocalizer.Instance;
     _slugService = slugService;
 }
コード例 #34
0
ファイル: SlugTokens.cs プロジェクト: Higea/Orchard
 public SlugTokens(ISlugService slugService, IHomeAliasService homeAliasService) {
     T = NullLocalizer.Instance;
     _slugService = slugService;
     _homeAliasService = homeAliasService;
 }