本文整理汇总了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;
}
示例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>();
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例7: HomeController
public HomeController(IPostService postService, IBookService bookService, IPageService pageService,
ICategoryService categoryService)
{
_postService = postService;
_bookService = bookService;
_pageService = pageService;
_categoryService = categoryService;
}
示例8: PageController
public PageController(
IAuthenticationService authenticationService,
IPageService pageService,
IContentRouteProvider contentRouteProvider) {
_authenticationService = authenticationService;
_pageService = pageService;
_contentRouteProvider = contentRouteProvider;
}
示例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;
}
示例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;
};
}
示例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;
}
示例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>();
}
示例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;
}
示例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;
}
示例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;
}