public RouteService(IAppServiceRepository svcRepo, RequestContext context, RouteCollection routes, ILogService logger) { AppService = svcRepo.GetService(); Routes = routes; Context = context; LogService = logger; }
public BaseRouteRegistrar(IAppServiceRepository svcRepo, List<SiteRoute> routes, int defaultMerit) { this.AppService = svcRepo.GetService(); this.BasePath = GetBasePath(); this.Routes = routes; this.RouteServiceType = typeof(RouteService).AssemblyQualifiedName; this.DefaultMerit = defaultMerit; }
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 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); }
public FileAtomEntryRepository(string storePath, IAppServiceRepository svcRepo) { pathResolver = new PathResolver(storePath, svcRepo.GetService()); }
private void DeleteWorkspace(IAppServiceRepository repository, string workspaceName) { AppService appService = repository.GetService(); int initialCount = appService.Workspaces.Count(); appService.Workspaces = appService.Workspaces.RemoveByName(workspaceName); Assert.AreEqual(initialCount - 1, appService.Workspaces.Count(), "Workspace was not removed"); repository.UpdateService(appService); appService = repository.GetService(); // check that it's gone AppWorkspace workspace = appService.Workspaces.FindByName(workspaceName); Assert.IsNull(workspace, "Workspace was not deleted " + workspaceName); }
public FileMediaRepository(string storePath, IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo) { pathResolver = new PathResolver(storePath, svcRepo.GetService()); atomEntryRepository = entryRepo; }
public FileAppCategoriesRepository(string storePath, IAppServiceRepository svcRepo) { pathResolver = new PathResolver(storePath, svcRepo.GetService()); }