当前位置: 首页>>代码示例>>C#>>正文


C# IPageService类代码示例

本文整理汇总了C#中IPageService的典型用法代码示例。如果您正苦于以下问题:C# IPageService类的具体用法?C# IPageService怎么用?C# IPageService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IPageService类属于命名空间,在下文中一共展示了IPageService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WebFrameworkServiceBinder

 public WebFrameworkServiceBinder(
     IDomainService domainService,
     IClientAssetConfigService clientAssetConfigService,
     IClientAssetService clientAssetService,
     IClientAssetTypeService clientAssetTypeService,
     IPageService pageService,
     IPageTemplateService pageTemplateService,
     IPageTemplateZoneMapService pageTemplateZoneMapService,
     IPageZoneService pageZoneService,
     IPartService partService,
     IPartTypeService partTypeService,
     ISeoDecoratorService seoDecoratorService,
     IUserService userService,
     IPartContainerService partContainerService)
 {
     this.domainService = domainService;
     this.clientAssetConfigService = clientAssetConfigService;
     this.clientAssetService = clientAssetService;
     this.clientAssetTypeService = clientAssetTypeService;
     this.pageService = pageService;
     this.pageTemplateService = pageTemplateService;
     this.pageTemplateZoneMapService = pageTemplateZoneMapService;
     this.pageZoneService = pageZoneService;
     this.partService = partService;
     this.partTypeService = partTypeService;
     this.seoDecoratorService = seoDecoratorService;
     this.userService = userService;
     this.partContainerService = partContainerService;
 }
开发者ID:rajbyexample,项目名称:Firebrick-CMS,代码行数:29,代码来源:WebFrameworkServiceBinder.cs

示例2: PagesController

        /// <summary>
        /// Initializes a new instance of the <see cref="PagesController"/> class.
        /// </summary>
        public PagesController()
        {
            pageService = ServiceLocator.Current.GetInstance<IPageService>();
            permissionService = ServiceLocator.Current.GetInstance<IPermissionCommonService>();
            permissionHelper = ServiceLocator.Current.GetInstance<IPermissionsHelper>();

        }
开发者ID:coreframework,项目名称:Core-Framework,代码行数:10,代码来源:PagesController.cs

示例3: PageController

 public PageController(ILog logger, IConfigurationService configurationService, IPageService pageService, IUrlBuilder urlBuilder, IRoutingService routingService)
     : base(logger, configurationService)
 {
     this.pageService = pageService;
     this.urlBuilder = urlBuilder;
     this.routingService = routingService;
 }
开发者ID:prabhakara,项目名称:Dexter-Blog-Engine,代码行数:7,代码来源:PageController.cs

示例4: WidgetController

 public WidgetController(ILog logger, IConfigurationService configurationService, IPostService postService, ICategoryService categoryService, IPageService pageService)
     : base(logger, configurationService)
 {
     this.postService = postService;
     this.categoryService = categoryService;
     this.pageService = pageService;
 }
开发者ID:prabhakara,项目名称:Dexter-Blog-Engine,代码行数:7,代码来源:WidgetController.cs

示例5: WebFrameworkController

 /// <summary>
 /// Initializes a new instance of the <see cref="WebFrameworkController"/> class.
 /// </summary>
 /// <param name="domainService">
 /// The domain service.
 /// </param>
 /// <param name="clientAssetTypeService"> </param>
 /// <param name="pageService">
 /// The page service.
 /// </param>
 /// <param name="pageTemplateService">
 /// The page template service.
 /// </param>
 /// <param name="pageTemplateZoneMapService">
 /// The page template zone map service.
 /// </param>
 /// <param name="pageZoneService">
 /// The page zone service.
 /// </param>
 /// <param name="partService">
 /// The part service.
 /// </param>
 /// <param name="partTypeService">
 /// The part type service.
 /// </param>
 /// <param name="seoDecoratorService">
 /// The seo decorator service.
 /// </param>
 /// <param name="userService">
 /// The user service.
 /// </param>
 /// <param name="clientAssetConfigService"> </param>
 /// <param name="clientAssetService"> </param>
 /// <param name="partContainerService"> </param>
 public WebFrameworkController(
     IDomainService domainService,
     IClientAssetConfigService clientAssetConfigService,
     IClientAssetService clientAssetService,
     IClientAssetTypeService clientAssetTypeService,
     IPageService pageService,
     IPageTemplateService pageTemplateService,
     IPageTemplateZoneMapService pageTemplateZoneMapService,
     IPageZoneService pageZoneService,
     IPartService partService,
     IPartTypeService partTypeService,
     ISeoDecoratorService seoDecoratorService,
     IUserService userService,
     IPartContainerService partContainerService)
 {
     this.modelBinder = new WebFrameworkServiceBinder(
         domainService,
         clientAssetConfigService,
         clientAssetService,
         clientAssetTypeService,
         pageService,
         pageTemplateService,
         pageTemplateZoneMapService,
         pageZoneService,
         partService,
         partTypeService,
         seoDecoratorService,
         userService,
         partContainerService);
 }
开发者ID:rajbyexample,项目名称:Firebrick-CMS,代码行数:64,代码来源:WebFrameworkController.cs

示例6: HomeController

 public HomeController(ApplicationSettings settings, UserServiceBase userManager, MarkupConverter markupConverter,
     IPageService pageService, SearchService searchService, IUserContext context, SettingsService settingsService)
     : base(settings, userManager, context, settingsService)
 {
     _markupConverter = markupConverter;
     _searchService = searchService;
     PageService = pageService;
 }
开发者ID:Khamull,项目名称:roadkill,代码行数:8,代码来源:HomeController.cs

示例7: HomeController

 public HomeController(IPostService postService, IBookService bookService, IPageService pageService,
     ICategoryService categoryService)
 {
     _postService = postService;
     _bookService = bookService;
     _pageService = pageService;
     _categoryService = categoryService;
 }
开发者ID:wria7,项目名称:IrisCms,代码行数:8,代码来源:HomeController.cs

示例8: PageController

 public PageController(
     IAuthenticationService authenticationService,
     IPageService pageService,
     IContentRouteProvider contentRouteProvider) {
     _authenticationService = authenticationService;
     _pageService = pageService;
     _contentRouteProvider = contentRouteProvider;
 }
开发者ID:wolfweb,项目名称:Ww,代码行数:8,代码来源:PageController.cs

示例9: AuthenticationStack

        public AuthenticationStack(IExtNavigationService navigationService, IExtDialogService dialogService, IPageService pageService) : base(navigationService, dialogService, pageService)
        {
            var navPage = new NavigationPage();

            // Disable NavigationBar on all pages within this Stack.
            navPage.Pushed += (s, e) => { NavigationPage.SetHasNavigationBar(e.Page, false); };
            
            MainPage = NavigationPage = navPage;
        }
开发者ID:flolovebit,项目名称:xarch-starter,代码行数:9,代码来源:AuthenticationStack.cs

示例10: PageModule

        public PageModule(IPageService pageService,IMapper mapper): base("/pages")
        {
            if (pageService == null)
            {
                throw new ArgumentNullException(nameof(pageService));
            }

            this.pageService = pageService;
            this.mapper = mapper;

            Get["/"] = _ =>
            {
                var pages = pageService.GetAll().ToList();
                var pagesViewModel = mapper.Map<IEnumerable<Page>, IEnumerable<PageViewModel>>(pages);
                return pagesViewModel;
            };

            Get["/{id}"] = parameter => pageService.GetById(parameter.id) ?? HttpStatusCode.NotFound;

            Post["/"] = _ =>
            {
                var page = this.Bind<Page>();

                page = pageService.Add(page);

                return page;
            };

            Put["/{id}"] = parameter =>
            {
                var page = this.Bind<Page>();

                page.PageId = parameter.id;

                bool isUpdated = pageService.Update(page);

                return isUpdated ? HttpStatusCode.OK : HttpStatusCode.NotFound;
            };

            Delete["/{id}"] = parameter =>
            {
                var page = new Page() { PageId = parameter.id };

                bool isDeleted = pageService.Remove(page);

                return isDeleted ? HttpStatusCode.OK : HttpStatusCode.NotFound;
            };

            Post["/insert"] = _ =>
            {
                var pages = this.Bind<IEnumerable<Page>>();

                pageService.Insert(pages);

                return HttpStatusCode.OK;
            };
        }
开发者ID:RatingMarker,项目名称:PageMicroservice,代码行数:57,代码来源:PageModule.cs

示例11: PageController

 public PageController(CoreSettings coreSettings, IPermissionService permissionService, IPageService pageService, IWorkContext workContext, IMediaService mediaService, IWebHelper webHelper)
 {
     _coreSettings = coreSettings;
     _mediaService = mediaService;
     _pageService = pageService;
     _permissionService = permissionService;
     _webHelper = webHelper;
     _workContext = workContext;
 }
开发者ID:revolutionaryarts,项目名称:wewillgather,代码行数:9,代码来源:PageController.cs

示例12: MetaWeblogHandler

 public MetaWeblogHandler()
 {
     this.categoryService = DexterContainer.Resolve<ICategoryService>();
     this.configurationService = DexterContainer.Resolve<IConfigurationService>();
     this.pageService = DexterContainer.Resolve<IPageService>();
     this.postService = DexterContainer.Resolve<IPostService>();
     this.routingService = DexterContainer.Resolve<IRoutingService>();
     this.urlBuilder = DexterContainer.Resolve<IUrlBuilder>();
 }
开发者ID:prabhakara,项目名称:Dexter-Blog-Engine,代码行数:9,代码来源:MetaWeblogHandler.cs

示例13: BlogPostPropertiesService

 public BlogPostPropertiesService(IRepository repository, IMediaFileUrlResolver fileUrlResolver,
     IBlogSaveService blogSaveService, ISecurityService securityService, IPageService pageService)
 {
     this.repository = repository;
     this.fileUrlResolver = fileUrlResolver;
     this.blogSaveService = blogSaveService;
     this.securityService = securityService;
     this.pageService = pageService;
 }
开发者ID:k4gdw,项目名称:BetterCMS,代码行数:9,代码来源:BlogPostPropertiesService.cs

示例14: DefaultPageCloneService

 public DefaultPageCloneService(IPageService pageService, IUrlService urlService, ISecurityService securityService, 
     IAccessControlService accessControlService, IRepository repository, IUnitOfWork unitOfWork)
 {
     this.pageService = pageService;
     this.urlService = urlService;
     this.securityService = securityService;
     this.accessControlService = accessControlService;
     this.unitOfWork = unitOfWork;
     this.repository = repository;
 }
开发者ID:JMFURY,项目名称:BetterCMS,代码行数:10,代码来源:DefaultPageCloneService.cs

示例15: PagesController

        public PagesController(ApplicationSettings settings, UserServiceBase userManager,
			SettingsService settingsService, IPageService pageService, SearchService searchService,
			PageHistoryService historyService, IUserContext context)
            : base(settings, userManager, context, settingsService)
        {
            _settingsService = settingsService;
            _pageService = pageService;
            _searchService = searchService;
            _historyService = historyService;
        }
开发者ID:NaseUkolyCZ,项目名称:roadkill,代码行数:10,代码来源:PagesController.cs


注:本文中的IPageService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。