public Handler(DataContext context, IMapper mapper, ISlugGenerator slugGenerator, IActivityLogger logger) { _logger = logger; _slugGenerator = slugGenerator; _mapper = mapper; _context = context; }
public CreateStoryCommandHandler( StoryBlogDbContext context, IMapper mapper, ISlugGenerator slugGenerator, IDateTimeProvider dateTimeProvider) { this.context = context; this.mapper = mapper; this.slugGenerator = slugGenerator; this.dateTimeProvider = dateTimeProvider; }
public CreateAudioCommandHandler(ICurrentUserService currentUserService, ISlugGenerator slugGenerator, IUnitOfWork unitOfWork, IStorageService storageService, IOptions <MediaStorageSettings> mediaStorageOptions) { _currentUserService = currentUserService; _slugGenerator = slugGenerator; _unitOfWork = unitOfWork; _storageService = storageService; _audioStorageSettings = mediaStorageOptions.Value.Audio; }
public BlogController(IBlogRepository blogRepository, IUserRepository userRepository, ISlugGenerator slugGenerator, IConfiguration configuration) : base(configuration, userRepository) { _blogRepository = blogRepository; _userRepository = userRepository; _slugGenerator = slugGenerator; _configuration = configuration; var configPageSize = configuration.Settings["Blog:PageSize"]; if (!String.IsNullOrEmpty(configPageSize)) { _defaultPageSize = Convert.ToInt32(configPageSize); } }
public EntryPublisher(ISubtextContext context, ITextTransformation transformation, ISlugGenerator slugGenerator, IIndexingService indexingService) { if (context == null) { throw new ArgumentNullException("context"); } if (indexingService == null) { throw new ArgumentNullException("indexingService"); } SubtextContext = context; Transformation = transformation ?? EmptyTextTransformation.Instance; SlugGenerator = slugGenerator ?? new SlugGenerator(FriendlyUrlSettings.Settings, context.Repository); IndexingService = indexingService; }
public CreateArticleHandler(AppDbContext context, ISlugGenerator slugGenerator) { _context = context; _slugGenerator = slugGenerator; }
public SitemapsController(IDeletableEntityRepository <News> newsRepository, ISlugGenerator slugGenerator) { this.newsRepository = newsRepository; this.slugGenerator = slugGenerator; }