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 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; }