本文整理汇总了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);
}
示例2: EntryController
public EntryController(IEntryService entryService, ICommentService commentService, IBlogService blogService, ITagService tagService)
{
_entryService = entryService;
_commentService = commentService;
_blogService = blogService;
_tagService = tagService;
}
示例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;
}
示例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();
}
示例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;
}
示例6: BlogController
public BlogController(IAtomPubService atompub, IAnnotateService annotate, IBlogService blog)
: base()
{
AtomPubService = atompub;
AnnotateService = annotate;
BlogService = blog;
}
示例7: PostController
public PostController(IPostService postService, IDashboardService dashboardService, IBlogService blogService, ILogger logger)
: base(logger)
{
_postService = postService;
_dashboardService = dashboardService;
_blogService = blogService;
}
示例8: ArticleController
public ArticleController(IBlogService blogService, IArticleService articleService, ITagService tagService, ICommentService commentService)
{
_blogService = blogService;
_articleService = articleService;
_tagService = tagService;
_commentService = commentService;
}
示例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
});
}
示例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;
}
示例11: AdminController
public AdminController(IOrchardServices services, IImportService importService, IBlogService blogService, IEnumerable<IBlogAssembler> assemblers) {
Services = services;
_importService = importService;
_blogService = blogService;
_assemblers = assemblers;
T = NullLocalizer.Instance;
}
示例12: SearchController
public SearchController(IArticleService articleService, ITagRepository tagRepository,
IBlogService blogService, IUserService userService)
{
_articleService = articleService;
_tagRepository = tagRepository;
_blogService = blogService;
_userService = userService;
}
示例13: AtomController
public AtomController(IBlogService blogService, IPostService postService, IDashboardService dashboardService, ILogger logger, ISyndicationFeedService syndicationFeedService)
: base(logger)
{
_blogService = blogService;
_postService = postService;
_dashboardService = dashboardService;
_syndicationFeedService = syndicationFeedService;
}
示例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;
}
示例15: AdministratorController
public AdministratorController(IBlogService blogService, IEntryService entryService, IUserService userService, ITagService tagService, ICommentService commentService)
{
_blogService = blogService;
_entryService = entryService;
_userService = userService;
_tagService = tagService;
_commentService = commentService;
}