Esempio n. 1
0
 public ArticleController(ICommandBus commandBus,
     IArticleRepository articleRepository,
     ICategoryRepository categoryRepository,
     IChannelRepository channelRepository,
     IArticleChannelRepository articleChannelRepository
     )
 {
     this.commandBus = commandBus;
     this.articleChannelRepository = articleChannelRepository;
     this.channelRepository = channelRepository;
     this.categoryRepository = categoryRepository;
     this.articleRepository = articleRepository;
 }
 public ProjectChannelsEditor(IChannelRepository repository, ProjectResource owner)
 {
     this.repository = repository;
     this.owner = owner;
 }
 public PostingController(IPostingRepository postingRepository, IChannelRepository channelRepository, ITemplateRepository templateRepository)
 {
     this.postingRepository = postingRepository;
     this.channelRepository = channelRepository;
     this.templateRepository = templateRepository;
 }
 public ChannelService()
 {
     _channelRepository = new ChannelRepository(new ConnectionStringProvider());
 }
 public ChannelService(IChannelRepository channelRepository)
 {
     _channelRepository = channelRepository;
 }
Esempio n. 6
0
 /// <summary>
 /// Initialises a new instance of the <see cref="CommandServiceHelper"/> class.
 /// </summary>
 /// <param name="client">
 /// The client.
 /// </param>
 /// <param name="messageService">
 /// The message service.
 /// </param>
 /// <param name="urlShorteningService">
 /// The url Shortening Service.
 /// </param>
 /// <param name="configurationHelper">
 /// The configuration Helper.
 /// </param>
 /// <param name="mediaWikiSiteRepository">
 /// The media Wiki Site Repository.
 /// </param>
 /// <param name="interwikiPrefixRepository">
 /// The inter-wiki Prefix Repository.
 /// </param>
 /// <param name="channelRepository">
 /// The channel Repository.
 /// </param>
 public CommandServiceHelper(
     IIrcClient client, 
     IMessageService messageService, 
     IUrlShorteningService urlShorteningService, 
     IConfigurationHelper configurationHelper, 
     IMediaWikiSiteRepository mediaWikiSiteRepository, 
     IInterwikiPrefixRepository interwikiPrefixRepository, 
     IChannelRepository channelRepository)
 {
     this.client = client;
     this.messageService = messageService;
     this.urlShorteningService = urlShorteningService;
     this.configurationHelper = configurationHelper;
     this.mediaWikiSiteRepository = mediaWikiSiteRepository;
     this.interwikiPrefixRepository = interwikiPrefixRepository;
     this.channelRepository = channelRepository;
 }
Esempio n. 7
0
 /// <summary>
 /// 取得指定类别下的列表
 /// </summary>
 /// <param name="parent_id">父ID</param>
 /// <param name="channel_name">频道名称</param>
 /// <returns></returns>
 public DataTable GetChildList(int parent_id, string channel_name, IChannelRepository repository)
 {
     var channel_id = new ChannelService(repository).GetChannelId(channel_name);
     return this._repository.GetChildList(parent_id, channel_id);
 }
Esempio n. 8
0
 public ChannelService(IChannelRepository repository)
 {
     this._repository = repository;
 }