• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IPageService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: MainStack

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

            MainPage = new MasterDetailPage()
            {
                BackgroundColor = Color.Transparent,
                Master = BuildMenuPage(),
                Detail = NavigationPage
            };
        }
开发者ID:flolovebit,项目名称:xarch-starter,代码行数:11,代码来源:MainStack.cs


示例17: PantherSiteMapMiddleware

 public PantherSiteMapMiddleware(RequestDelegate next,
     IServiceProvider serviceProvider,
     IPantherContext context,
     IPageService pageService
     )
 {
     this.next = next;
     this.serviceProvider = serviceProvider;
     this.pageService = pageService;
     this.context = context;
 }
开发者ID:freemsly,项目名称:CMS,代码行数:11,代码来源:PantherSiteMapMiddleware.cs


示例18: WebCoreServiceBinder

 public WebCoreServiceBinder(
     IPageService pageService,
     ISeoDecoratorService seoDecoratorService,
     ISeoRouteValueService seoRouteValueService,
     IDomainService domainService)
 {
     this.pageService = pageService;
     this.seoDecoratorService = seoDecoratorService;
     this.seoRouteValueService = seoRouteValueService;
     this.domainService = domainService;
 }
开发者ID:rajbyexample,项目名称:Firebrick-CMS,代码行数:11,代码来源:WebCoreServiceBinder.cs


示例19: InstallController

 public InstallController(IEventService eventService, IMenuService menuService, IPageService pageService, IPostService postService, ISettingService settingService, 
     IStateService stateService, ITenantService tenantService)
 {
     _eventService = eventService;
     _menuService = menuService;
     _pageService = pageService;
     _postService = postService;
     _settingService = settingService;
     _stateService = stateService;
     _tenantService = tenantService;
 }
开发者ID:vin-e,项目名称:Vindation.CMS,代码行数:11,代码来源:InstallController.cs


示例20: BlogPostPropertiesService

 public BlogPostPropertiesService(IRepository repository, IMediaFileUrlResolver fileUrlResolver,
     IBlogSaveService blogSaveService, ISecurityService securityService, IPageService pageService,
     Module.Root.Services.IOptionService optionService, BetterCms.Module.Root.Services.ICategoryService categoriesService)
 {
     this.repository = repository;
     this.fileUrlResolver = fileUrlResolver;
     this.blogSaveService = blogSaveService;
     this.securityService = securityService;
     this.pageService = pageService;
     this.optionService = optionService;
     this.categoriesService = categoriesService;
 }
开发者ID:Steinerd,项目名称:BetterCMS,代码行数:12,代码来源:BlogPostPropertiesService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IPagedList类代码示例发布时间:2022-05-24
下一篇:
C# IPage类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap