Example #1
0
 public WikiPageController(IOrchardServices orchardServices, 
     IRepository<WikiPageAttachmentRecord> repoWikiAttachment,
     ITagService tagService,
     IAuthorizationService authorizationService,
     INotifier notifier,
     ISiteService siteService,
     ISearchService searchService,
     IShapeFactory shapeFactory,
     IWikiPageService wikiPageService,
     IMediaService mediaService
    ){
     _orchardServices = orchardServices;
     _repoWikiAttachment = repoWikiAttachment;
     _tagService = tagService;
     _authorizationService = authorizationService;
     _notifier = notifier;
     _searchService = searchService;
     _siteService = siteService;
     _wikiPageService = wikiPageService;
     _mediaService = mediaService;
     Logger = NullLogger.Instance;
     Shape = shapeFactory;
    
     
 }
Example #2
0
        public WikiPagePartHandler(IRepository<WikiPagePartRecord> wikiPageRepository, IWikiPageService wikiPageService)
        {
            Filters.Add(StorageFilter.For(wikiPageRepository));

            _wikiPageService = wikiPageService;

            /*
            OnInitializing<WikiPagePart>((ctx, x) =>
            {
                x.Attachments = new List<WikiAttachmentRecord>();
            });

            OnLoading<WikiPagePart>((context, wikiPage) =>
            {
                wikiPage._attachments.Loader(list => _wikiPageService.GetAttachments(wikiPage));
            }); */
        }
 public HomeController(IWikiPageService service)
 {
     this.service = service;
 }