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

C# ITopicService类代码示例

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

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



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

示例1: BatchController

 public BatchController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, ISettingsService settingsService, ICategoryService categoryService, ITopicService topicService) 
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, settingsService)
 {
     _categoryService = categoryService;
     _topicService = topicService;
 }
开发者ID:StefanoPireddu,项目名称:mvcforum,代码行数:7,代码来源:BatchController.cs


示例2: GetPostService

		private void GetPostService(UnitOfWork uow, out ICategoryService categoryService, out IForumService forumService, out ITopicService topicService, out IPostService postService) {
			ICategoryRepository cateRepo = new CategoryRepository(uow);
			IForumRepository forumRepo = new ForumRepository(uow);
			ITopicRepository topicRepo = new TopicRepository(uow);
			IPostRepository postRepo = new PostRepository(uow);
			IForumConfigurationRepository configRepo = new ForumConfigurationRepository(uow);

			IState request = new DummyRequest();

			ILogger logger = new ConsoleLogger();

			IUserRepository userRepo = new UserRepository(uow);
			User user = userRepo.Create(new User {
				Name = "D. Ummy",
				ProviderId = "12345678",
				FullName = "Mr. Doh Ummy",
				EmailAddress = "[email protected]",
				Culture = "th-TH",
				TimeZone = "GMT Standard Time"
			});

			List<IEventSubscriber> subscribers = new List<IEventSubscriber>();

			IEventPublisher eventPublisher = new EventPublisher(subscribers, logger, request);
			IUserProvider userProvider = new DummyUserProvider(user);
			IPermissionService permService = new PermissionService();
			IForumConfigurationService confService = new ForumConfigurationService(configRepo);

			categoryService = new CategoryService(userProvider, cateRepo, eventPublisher, logger, permService);
			forumService = new ForumService(userProvider, cateRepo, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService);
			topicService = new TopicService(userProvider, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService, confService);
			postService = new PostService(userProvider, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService, confService);
		}
开发者ID:razzles67,项目名称:NForum,代码行数:33,代码来源:TestCustomPropertiesHolders.cs


示例3: TopicTagService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="topicService"></param>
 /// <param name="categoryService"></param>
 /// <param name="badgeService"></param>
 public TopicTagService(IMVCForumContext context, ITopicService topicService, ICategoryService categoryService, IBadgeService badgeService)
 {
     _topicService = topicService;
     _categoryService = categoryService;
     _badgeService = badgeService;
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:14,代码来源:TopicTagService.cs


示例4: TopicController

 public TopicController(ITopicService topicService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService, 
     ILocalizationService localizationService,
     IPermissionService permissionService, 
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IUrlRecordService urlRecordService,
     ITopicTemplateService topicTemplateService,
     ICustomerService customerService,
     ICustomerActivityService customerActivityService,
     IAclService aclService)
 {
     this._topicService = topicService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._urlRecordService = urlRecordService;
     this._topicTemplateService = topicTemplateService;
     this._customerService = customerService;
     this._customerActivityService = customerActivityService;
     this._aclService = aclService;
 }
开发者ID:RobinHoody,项目名称:nopCommerce,代码行数:26,代码来源:TopicController.cs


示例5: MembershipService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="settingsService"> </param>
 /// <param name="emailService"> </param>
 /// <param name="localizationService"> </param>
 /// <param name="activityService"> </param>
 /// <param name="privateMessageService"> </param>
 /// <param name="membershipUserPointsService"> </param>
 /// <param name="topicNotificationService"> </param>
 /// <param name="voteService"> </param>
 /// <param name="badgeService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="uploadedFileService"></param>
 /// <param name="postService"></param>
 /// <param name="pollVoteService"></param>
 /// <param name="pollAnswerService"></param>
 /// <param name="pollService"></param>
 /// <param name="topicService"></param>
 /// <param name="favouriteService"></param>
 /// <param name="categoryService"></param>
 public MembershipService(IMVCForumContext context, ISettingsService settingsService,
     IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
     IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
     ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
     ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
     IPostService postService, IPollVoteService pollVoteService, IPollAnswerService pollAnswerService,
     IPollService pollService, ITopicService topicService, IFavouriteService favouriteService, 
     ICategoryService categoryService, IPostEditService postEditService)
 {
     _settingsService = settingsService;
     _emailService = emailService;
     _localizationService = localizationService;
     _activityService = activityService;
     _privateMessageService = privateMessageService;
     _membershipUserPointsService = membershipUserPointsService;
     _topicNotificationService = topicNotificationService;
     _voteService = voteService;
     _badgeService = badgeService;
     _categoryNotificationService = categoryNotificationService;
     _loggingService = loggingService;
     _uploadedFileService = uploadedFileService;
     _postService = postService;
     _pollVoteService = pollVoteService;
     _pollAnswerService = pollAnswerService;
     _pollService = pollService;
     _topicService = topicService;
     _favouriteService = favouriteService;
     _categoryService = categoryService;
     _postEditService = postEditService;
     _context = context as MVCForumContext;
 }
开发者ID:flerka,项目名称:mvcforum,代码行数:54,代码来源:MembershipService.cs


示例6: FavoritesController

		protected internal FavoritesController(IFavoriteTopicService favoriteTopicService, IForumService forumService, ILastReadService lastReadService, ITopicService topicService)
		{
			_favoriteTopicService = favoriteTopicService;
			_forumService = forumService;
			_lastReadService = lastReadService;
			_topicService = topicService;
		}
开发者ID:andyliyuze,项目名称:POPForums,代码行数:7,代码来源:FavoritesController.cs


示例7: StatsController

 public StatsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicService topicService, IPostService postService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicService = topicService;
     _postService = postService;
 }
开发者ID:kangjh0815,项目名称:test,代码行数:7,代码来源:StatsController.cs


示例8: ModeratorController

		protected internal ModeratorController(ITopicService topicService, IForumService forumService, IPostService postService, IModerationLogService moderationLogService)
		{
			_topicService = topicService;
			_forumService = forumService;
			_postService = postService;
			_moderationLogService = moderationLogService;
		}
开发者ID:andyliyuze,项目名称:POPForums,代码行数:7,代码来源:ModeratorController.cs


示例9: 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


示例10: IELTSController

 public IELTSController(IIeltsMaterialService ieltsMaterialService,
     ITopicService topicService,
     IFilesProxyAdapter filesProxyAdapter)
 {
     _topicService = topicService;
     _ieltsMaterialService = ieltsMaterialService;
     _filesProxyAdapter = filesProxyAdapter;
 }
开发者ID:YekanPedia,项目名称:ManagementSystem,代码行数:8,代码来源:IELTSController.cs


示例11: PuzzleService

 public PuzzleService(IRepository repository, IAccountService accountService, IAuthenticationService authenticationService, ITopicService topicService, IReputationService reputationService)
 {
     _repository = repository;
     _accountService = accountService;
     _authenticationService = authenticationService;
     _topicService = topicService;
     _reputationService = reputationService;
 }
开发者ID:micahlmartin,项目名称:WikipediaMaze,代码行数:8,代码来源:PuzzleService.cs


示例12: SubscriptionController

		protected internal SubscriptionController(ISubscribedTopicsService subService, ITopicService topicService, IUserService userService, ILastReadService lastReadService, IForumService forumService)
		{
			_subService = subService;
			_topicService = topicService;
			_userService = userService;
			_lastReadService = lastReadService;
			_forumService = forumService;
		}
开发者ID:andyliyuze,项目名称:POPForums,代码行数:8,代码来源:SubscriptionController.cs


示例13: TopicController

 public TopicController(ICategoryService categoryService, IMembershipService membershipServise, ITopicService topicService, ITopicTagService topicTagService, IPostService postService)
 {
     _categoryService = categoryService;
     _membershipServise = membershipServise;
     _topicService = topicService;
     _topicTagService = topicTagService;
     _postService = postService;
 }
开发者ID:Alukar,项目名称:ForumMVC,代码行数:8,代码来源:TopicController.cs


示例14: ModerateController

 public ModerateController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, IPostService postService, 
     ITopicService topicService, ICategoryService categoryService, ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
 {
     _postService = postService;
     _topicService = topicService;
     _categoryService = categoryService;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:9,代码来源:ModerateController.cs


示例15: HomeController

 public HomeController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IActivityService activityService, IMembershipService membershipService,
     ITopicService topicService, ILocalizationService localizationService, IRoleService roleService,
     ISettingsService settingsService, ICategoryService categoryService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicService = topicService;
     _categoryService = categoryService;
     _activityService = activityService;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:9,代码来源:HomeController.cs


示例16: HomeController

 public HomeController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService,
     ISettingsService settingsService, IPostService postService,
     ITopicService topicService,
     ILocalizationService localizationService)
     : base(loggingService,unitOfWorkManager,userService,settingsService,localizationService)
 {
     this._postService = postService;
     this._topicService = topicService;
 }
开发者ID:h2h,项目名称:CandyBBS,代码行数:9,代码来源:HomeController.cs


示例17: MarkAsSolutionReminderJob

 public MarkAsSolutionReminderJob(ILoggingService loggingService, IEmailService emailService, IUnitOfWorkManager unitOfWorkManager, ITopicService topicService, ISettingsService settingsService, ILocalizationService localizationService)
 {
     _loggingService = loggingService;
     _emailService = emailService;
     _unitOfWorkManager = unitOfWorkManager;
     _topicService = topicService;
     _settingsService = settingsService;
     _localizationService = localizationService;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:9,代码来源:MarkAsSolutionReminderJob.cs


示例18: TopicController

 public TopicController(ITopicService topicService,
     ILocalizationService localizationService,
     IWorkContext workContext, ICacheManager cacheManager)
 {
     this._topicService = topicService;
     this._workContext = workContext;
     this._localizationService = localizationService;
     this._cacheManager = cacheManager;
 }
开发者ID:emilianionascu,项目名称:NopCommerce,代码行数:9,代码来源:TopicController.cs


示例19: TopicController

 public TopicController(ITopicService topicService,
     ILocalizationService localizationService,
     ICurrentActivity currentActivity,
     ICacheManager cacheManager)
 {
     this._topicService = topicService;
     this._currentActivity = currentActivity;
     this._localizationService = localizationService;
     this._cacheManager = cacheManager;
 }
开发者ID:khiemnd777,项目名称:aaron-core,代码行数:10,代码来源:TopicController.cs


示例20: DashboardController

 public DashboardController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
     ILocalizationService localizationService, ISettingsService settingsService, IPostService postService, 
     ITopicService topicService, ITopicTagService topicTagService, IMembershipUserPointsService membershipUserPointsService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, settingsService)
 {
     _membershipUserPointsService = membershipUserPointsService;
     _postService = postService;
     _topicService = topicService;
     _topicTagService = topicTagService;
 }
开发者ID:kangjh0815,项目名称:test,代码行数:10,代码来源:DashboardController.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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