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

C# IBlogService类代码示例

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

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



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

示例1: RobotsTxtManager

 public RobotsTxtManager(
     ISettingService settingService,
     ILocalizationService localizationService,
     LocalizationSettings localizationSettings,
     IStoreContext storeContext,
     ILanguageService languageService,
     IBlogService blogService,
     INewsService newsService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ITopicService topicService,
     IVendorService vendorService,
     IProductService productService)
 {
     _settingService = settingService;
     _localizationService = localizationService;
     _localizationSettings = localizationSettings;
     _storeContext = storeContext;
     _languageService = languageService;
     _blogService = blogService;
     _newsService = newsService;
     _categoryService = categoryService;
     _manufacturerService = manufacturerService;
     _topicService = topicService;
     _vendorService = vendorService;
     _productService = productService;
     _storeId = _storeContext.CurrentStore.Id;
     _languages = _languageService.GetAllLanguages(storeId: _storeId);
 }
开发者ID:ilich,项目名称:Nop.Plugin.Misc.CustomRobotsTxt,代码行数:29,代码来源:RobotsTxtManager.cs


示例2: EntryController

 public EntryController(IEntryService entryService, ICommentService commentService, IBlogService blogService, ITagService tagService)
 {
     _entryService = entryService;
     _commentService = commentService;
     _blogService = blogService;
     _tagService = tagService;
 }
开发者ID:nancy-bree,项目名称:Bloghost,代码行数:7,代码来源:EntryController.cs


示例3: BlogController

        public BlogController(IBlogService blogService, 
            IWorkContext workContext,
            IStoreContext storeContext,
            IPictureService pictureService, 
            ILocalizationService localizationService,
            IDateTimeHelper dateTimeHelper,
            IWorkflowMessageService workflowMessageService, 
            IWebHelper webHelper,
            ICacheManager cacheManager, 
            ICustomerActivityService customerActivityService,
            IStoreMappingService storeMappingService,
            MediaSettings mediaSettings,
            BlogSettings blogSettings,
            LocalizationSettings localizationSettings, 
            CustomerSettings customerSettings,
            CaptchaSettings captchaSettings)
        {
            this._blogService = blogService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper = webHelper;
            this._cacheManager = cacheManager;
            this._customerActivityService = customerActivityService;
            this._storeMappingService = storeMappingService;

            this._mediaSettings = mediaSettings;
            this._blogSettings = blogSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;
            this._captchaSettings = captchaSettings;
        }
开发者ID:vic0626,项目名称:nas-merk,代码行数:35,代码来源:BlogController.cs


示例4: MainViewModel

        public MainViewModel(IImagineCupService imagineCupService,
            IPersonService personService,
            IDreamsparkService dreamsparkService,
            IBlogService blogService)
        {
            _personService = personService;
            _imagineCupService = imagineCupService;
            _dreamsparkService = dreamsparkService;
            _blogService = blogService;

            blogLoaded = teamLoaded = false;
            ProgressBarVisibility = "Visible";
            IsIndeterminate = "True";
            GridVisibility = "Collapsed";
            ProgressRingVisibility = "Visible";
            ProgressRingActive = "True";

            LoadPeople();
            LoadEntries();

            ImagineCupDescription = _imagineCupService.GetDescription();
            ImagineCupImage = _imagineCupService.GetImageUrl();
            Prizes = _imagineCupService.GetPrizes();
            DreamsparkDescription = _dreamsparkService.GetBriefDescription();
        }
开发者ID:radu-ungureanu,项目名称:MSP,代码行数:25,代码来源:MainViewModel.cs


示例5: BlogsApiContext

 /// <summary>
 /// Initializes a new instance of the <see cref="BlogsApiContext" /> class.
 /// </summary>
 /// <param name="lifetimeScope">The lifetime scope.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="blogService">The blog service.</param>
 /// <param name="authorService">The author service.</param>
 /// <param name="repository">The repository.</param>
 public BlogsApiContext(ILifetimeScope lifetimeScope, ITagService tagService, IBlogService blogService, IAuthorService authorService, IRepository repository = null)
     : base(lifetimeScope, repository)
 {
     this.tagService = tagService;
     this.blogService = blogService;
     this.authorService = authorService;
 }
开发者ID:tkirda,项目名称:BetterCMS,代码行数:15,代码来源:BlogsApiContext.cs


示例6: BlogController

 public BlogController(IAtomPubService atompub, IAnnotateService annotate, IBlogService blog)
   : base()
 {
   AtomPubService = atompub;
   AnnotateService = annotate;
   BlogService = blog;
 }
开发者ID:erikzaadi,项目名称:atomsitethemes.erikzaadi.com,代码行数:7,代码来源:BlogController.cs


示例7: PostController

 public PostController(IPostService postService, IDashboardService dashboardService, IBlogService blogService, ILogger logger)
     : base(logger)
 {
     _postService = postService;
     _dashboardService = dashboardService;
     _blogService = blogService;
 }
开发者ID:kevinrjones,项目名称:mblog,代码行数:7,代码来源:PostController.cs


示例8: ArticleController

 public ArticleController(IBlogService blogService, IArticleService articleService, ITagService tagService, ICommentService commentService)
 {
     _blogService = blogService;
     _articleService = articleService;
     _tagService = tagService;
     _commentService = commentService;
 }
开发者ID:gewandt,项目名称:PersonalBlog,代码行数:7,代码来源:ArticleController.cs


示例9: CreateInitialData

        public static void CreateInitialData(this IAntlerConfigurator configurator, IBlogService blogService)
        {
            var userId = blogService.CreateUser(new CreatedUserDto()
                {
                    Name = "John",
                    Email = "[email protected]"
                });

            if (!userId.HasValue)
                throw new Exception("Problem while creating User");

            blogService.SavePost(new SavePostDto()
            {
                Title = "Great post about programming",
                Text = "Programming is a ...",
                AuthodId = userId.Value
            });

            blogService.SavePost(new SavePostDto()
            {
                Title = "Great post about fishing",
                Text = "Fishing is a ...",
                AuthodId = userId.Value
            });
        }
开发者ID:malylemire1,项目名称:Antler,代码行数:25,代码来源:ConfigurationEx.cs


示例10: HomeController

 public HomeController(IUserService userService, IRoleService roleService, ICommentService commentService, IBlogService blogService, IArticleService articleService)
 {
     this.userService = userService;
     this.roleService = roleService;
     this.commentService = commentService;
     this.blogService = blogService;
     this.articleService = articleService;
 }
开发者ID:f-acepalm,项目名称:Blog,代码行数:8,代码来源:HomeController.cs


示例11: AdminController

        public AdminController(IOrchardServices services, IImportService importService, IBlogService blogService, IEnumerable<IBlogAssembler> assemblers) {
            Services = services;
            _importService = importService;
            _blogService = blogService;
            _assemblers = assemblers;

            T = NullLocalizer.Instance;
        }
开发者ID:jean,项目名称:Contrib.ImportExport,代码行数:8,代码来源:AdminController.cs


示例12: SearchController

 public SearchController(IArticleService articleService, ITagRepository tagRepository,
     IBlogService blogService, IUserService userService)
 {
     _articleService = articleService;
     _tagRepository = tagRepository;
     _blogService = blogService;
     _userService = userService;
 }
开发者ID:opolkosergey,项目名称:Blog.ASP.Net.Opolko,代码行数:8,代码来源:SearchController.cs


示例13: AtomController

 public AtomController(IBlogService blogService, IPostService postService, IDashboardService dashboardService, ILogger logger, ISyndicationFeedService syndicationFeedService)
     : base(logger)
 {
     _blogService = blogService;
     _postService = postService;
     _dashboardService = dashboardService;
     _syndicationFeedService = syndicationFeedService;
 }
开发者ID:kevinrjones,项目名称:mblog,代码行数:8,代码来源:AtomController.cs


示例14: BlogController

 public BlogController(IOrchardServices services, IBlogService blogService, IBlogSlugConstraint blogSlugConstraint, IFeedManager feedManager, RouteCollection routeCollection) {
     _services = services;
     _blogService = blogService;
     _blogSlugConstraint = blogSlugConstraint;
     _feedManager = feedManager;
     _routeCollection = routeCollection;
     Logger = NullLogger.Instance;
 }
开发者ID:mofashi2011,项目名称:orchardcms,代码行数:8,代码来源:BlogController.cs


示例15: AdministratorController

 public AdministratorController(IBlogService blogService, IEntryService entryService, IUserService userService, ITagService tagService, ICommentService commentService)
 {
     _blogService = blogService;
     _entryService = entryService;
     _userService = userService;
     _tagService = tagService;
     _commentService = commentService;
 }
开发者ID:nancy-bree,项目名称:Bloghost,代码行数:8,代码来源:AdministratorController.cs


示例16: DefaultModule

        public DefaultModule(IBlogService blogService)
        {
            //Injection
            _blogService = blogService;

            //Routes
            Get["/"] = parameters => Default(parameters);
        }
开发者ID:dpoindexter,项目名称:doublewide-teamsite,代码行数:8,代码来源:DefaultModule.cs


示例17: ManagementModule

    public ManagementModule(IBlogService blogService) : base("/manage", blogService)
    {
      this.RequiresAuthentication();

      Get["/"] = _ => View["Index.spark", blogService.LoadAll()];
      Get["/approve/{id}"] = p => Approve(blogService, p);
                             
    }
开发者ID:garethrhughes,项目名称:grhughes.com.Website,代码行数:8,代码来源:ManagementModule.cs


示例18: ArticleController

 public ArticleController(IUserService service, IBlogService blogService,
     IArticleService articleService, ICommentService commentService)
 {
     _userService = service;
     _blogService = blogService;
     _articleService = articleService;
     _commentService = commentService;
 }
开发者ID:opolkosergey,项目名称:Blog.ASP.Net.Opolko,代码行数:8,代码来源:ArticleController.cs


示例19: GetBlog

		internal static BlogPart GetBlog(IBlogService blogService)
		{
			var blogPart = blogService.Get(VersionOptions.Published).FirstOrDefault();
			if (blogPart == null)
				throw new FileNotFoundException();

			return blogPart;
		}
开发者ID:Jandev,项目名称:JanVNL.Migrate,代码行数:8,代码来源:Retriever.cs


示例20: GetBlogPost

		public GetBlogPost(
						IBlogService blogService,
						IBlogPostService blogPostService
						)
		{
			_blogService = blogService;
			_blogPostService = blogPostService;
		}
开发者ID:Jandev,项目名称:JanVNL.Migrate,代码行数:8,代码来源:GetBlogPost.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IBoard类代码示例发布时间:2022-05-24
下一篇:
C# IBlogRepository类代码示例发布时间: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