public RaterService(IAuthorizeService auth, IAtomEntryRepository repo, ILogService logger,
   IRouteService router)
 {
   AuthorizeService = auth;
   AtomEntryRepository = repo;
   LogService = logger;
   RouteService = router;
 }
 public AdditionalWidgetsController(IAtomPubService atompub, IAnnotateService annotate, IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo)
     : base()
 {
     AtomPubService = atompub;
     AnnotateService = annotate;
     AppServiceRepository = svcRepo;
     AtomEntryRepository = entryRepo;
 }
 public AdminController(IUserRepository userRepo, IAtomPubService atompub, IAnnotateService annotate,
   IAtomEntryRepository atomRepo, AdminService admin, IThemeService theme)
 {
   AdminService = admin;
   UserRepository = userRepo;
   AtomPubService = atompub;
   AnnotateService = annotate;
   AtomEntryRepository = atomRepo;
   ThemeService = theme;
 }
 public WizardController(IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo,
   IMediaRepository mediaRepo,
   IUserRepository userRepo, IThemeService theme, ILogService logger)
 {
     AppServiceRepository = svcRepo;
     MediaRepository = mediaRepo;
     AtomEntryRepository = entryRepo;
     UserRepository = userRepo;
     LogService = logger;
     ThemeService = theme;
 }
    public TrackbackService(IAppServiceRepository svcRepo, IAtomPubService atompub,
      IAnnotateService annotate, IAtomEntryRepository entryRepo,
      IContainer container, ILogService logger)
    {
      LogService = logger;
      AppService = svcRepo.GetService();
      Container = container;
      AnnotateService = annotate;
      AtomEntryRepository = entryRepo;

      atompub.EntryCreated += AutoPing;
      atompub.EntryUpdated += AutoPing;
    }
    public AnnotateService(IContainer container, IAtomPubService atompub, IAppServiceRepository svcRepo, IAuthorizeService auth,
      IAtomEntryRepository entryRepo, IMediaRepository mediaRepo, ILogService logger)
    {
      AppService = svcRepo.GetService();
      AtomPubService = atompub;
      AuthorizeService = auth;
      AtomEntryRepository = entryRepo;
      MediaRepository = mediaRepo;
      Container = container;
      LogService = logger;

      atompub.SettingEntryLinks += (e) => SetLinks(e);
      atompub.SettingFeedLinks += (f) => SetLinks(f);
    }
 public AtomPubService(
     IAppServiceRepository appServiceRepository,
     IAppCategoriesRepository appCategoriesRepository,
     IAtomEntryRepository atomEntryRepository,
     IMediaRepository mediaRepository,
     IAuthorizeService authorizeService,
     IContainer container, 
   ILogService logger)
 {
   this.AppServiceRepository = appServiceRepository;
   this.AppCategoriesRepository = appCategoriesRepository;
   this.AtomEntryRepository = atomEntryRepository;
   this.MediaRepository = mediaRepository;
   this.AuthorizeService = authorizeService;
   this.Container = container;
   this.LogService = logger;
 }
 public BlogService(IAtomPubService atompub, IAnnotateService annotate,
   IAppServiceRepository svcRepo, IContainer container,
     IAtomEntryRepository entryRepo, IAuthorizeService auth, ILogService logger,
   ICleanContentService cleaner)
 {
   this.AppService = svcRepo.GetService();
   this.AppServiceRepository = svcRepo;
   this.AtomEntryRepository = entryRepo;
   this.Container = container;
   this.AnnotateService = annotate;
   this.AuthorizeService = auth;
   this.LogService = logger;
   this.CleanContentService = cleaner;
   atompub.CreatingEntry += OnModifyEntry;
   atompub.UpdatingEntry += OnModifyEntry;
   annotate.AnnotatingEntry += OnAnnotateEntry;
   atompub.SettingEntryLinks += (e) => SetLinks(e);
   atompub.SettingFeedLinks += (f) => SetLinks(f);
 }
 protected virtual void NormalizeEntry(AtomEntry entry, IEnumerable<User> users,
   IAtomEntryRepository repo)
 {
   try
   {
     FixAuthors(entry, users);
     entry.Edited = DateTimeOffset.UtcNow;
     repo.UpdateEntry(entry); //this should clean up namespaces as well
     int total;
     foreach (AtomEntry annotation in repo.GetEntries(new EntryCriteria()
     {
       EntryId = entry.Id,
       Annotations = true,
       Authorized = true,
       Deep = false
     }, 0, int.MaxValue, out total))
     {
       LogService.Info("Updating {0}", annotation.Id.EntryPath);
       try
       {
         NormalizeEntry(annotation, users, repo);
       }
       catch (Exception ex)
       {
         LogService.Error(ex);
       }
     }
   }
   catch (Exception ex)
   {
     LogService.Error(ex);
   }
 }
 public FileMediaRepository(string storePath, IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo)
 {
   pathResolver = new PathResolver(storePath, svcRepo.GetService());
   atomEntryRepository = entryRepo;
 }
 public FileMediaRepository(IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo) :
   this(HostingEnvironment.ApplicationPhysicalPath, svcRepo, entryRepo) { }