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


C# IBlogService类代码示例

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


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


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