本文整理汇总了C#中ITagRepository类的典型用法代码示例。如果您正苦于以下问题:C# ITagRepository类的具体用法?C# ITagRepository怎么用?C# ITagRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITagRepository类属于命名空间,在下文中一共展示了ITagRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SearchTasks
public SearchTasks(
IAssertionRepository assertionRepository,
ITagRepository tagRepository)
{
this.assertionRepository = assertionRepository;
this.tagRepository = tagRepository;
}
示例2: SpiderFactory
public SpiderFactory(ILogger logger, ISecurityContext securityContext, IMediaFactory mediaFactory, ILinkRepository linkRepository, ITagRepository tagRepository, IMediaRepository mediaRepository, IMetadataRepository mediaItemRepository, IAudioStreamFactory audioStreamFactory)
{
if (logger == null)
throw new ArgumentNullException("logger");
if (securityContext == null)
throw new ArgumentNullException("securityContext");
if (mediaFactory == null)
throw new ArgumentNullException("mediaFactory");
if (linkRepository == null)
throw new ArgumentNullException("linkRepository");
if (tagRepository == null)
throw new ArgumentNullException("tagRepository");
if (mediaRepository == null)
throw new ArgumentNullException("mediaRepository");
if (mediaItemRepository == null)
throw new ArgumentNullException("mediaItemRepository");
this.logger = logger;
this.securityContext = securityContext;
this.securityContext = securityContext;
this.mediaFactory = mediaFactory;
this.linkRepository = linkRepository;
this.tagRepository = tagRepository;
this.mediaRepository = mediaRepository;
this.mediaItemRepository = mediaItemRepository;
this.audioStreamFactory = audioStreamFactory;
}
示例3: ReportService
public ReportService(IRecordRepository repository, IReportConverter converter, IRecordValidator recordValidator, ITagRepository tagRepository)
{
_recordsRepository = repository;
_converter = converter;
_recordValidator = recordValidator;
_tagRepository = tagRepository;
}
示例4: ProductController
public ProductController(IBrandRepository brandRepository, ITagRepository tagRepository, IProductRepository productRepository, IStoreRepository storeRepository)
{
_productRepository = productRepository;
_storeRepository = storeRepository;
_brandRepository = brandRepository;
_tagRepository = tagRepository;
}
示例5: AlbumService
public AlbumService(IUsersRepository usersRepository, IAlbumRepository albumRepository, IPhotoRepository photoRepository, ITagRepository tagRepository)
{
this.mUserRepository = usersRepository;
this.mAlbumRepository = albumRepository;
this.mPhotoRepository = photoRepository;
this.mTagRepository = tagRepository;
}
示例6: YearController
/// <summary>
/// Initializes a new instance of the <see cref="YearController"/> class.
/// </summary>
/// <param name="recentRepository">The recent repository.</param>
/// <param name="tagService">The tag service.</param>
/// <param name="tagRepository">The tag repository.</param>
/// <param name="persistentCollectionService">The persistent collection service.</param>
public YearController(IRecentRepository recentRepository, ITagService tagService, ITagRepository tagRepository, IPersistentCollectionService persistentCollectionService)
{
_recentRepository = recentRepository;
_persistentCollectionService = persistentCollectionService;
_tagRepository = tagRepository;
_tagService = tagService;
}
示例7: TagsController
public TagsController(ITagRepository tagRepository, ISettingsProvider settingsProvider)
{
_tagRepository = tagRepository;
_settingsProvider = settingsProvider;
PageSize = _settingsProvider.GetSettings().PageSize;
}
示例8: ConceptsService
public ConceptsService(
IConceptRepository conceptRepository,
ITagRepository tagRepository)
{
this.conceptRepository = conceptRepository;
this.tagRepository = tagRepository;
}
示例9: StatusReportController
public StatusReportController(IStatusReportRepository repository, ITopicRepository topicRepository, IProjectRepository projectRepository, IResourceRepository resourceRepository, IStatusReportManager statusReportManager, ITagRepository tagRepository)
{
_repository = repository;
_topicRepository = topicRepository;
_projectRepository = projectRepository;
_resourceRepository = resourceRepository;
_tagRepository = tagRepository;
_statusReportManager = statusReportManager;
Mapper.CreateMap<StatusReport, StatusReportViewModel>()
.ForMember(m => m.NumberOfStatusItems, opt => opt.ResolveUsing<NumberOfStatusItemsFormatter>());
Mapper.CreateMap<StatusItem, StatusReportItemViewModel>()
.ForMember(m => m.TagsString, opt =>
{
opt.MapFrom(src =>
String.Join(",", (from tag in src.Tags
select tag.Name)));
opt.NullSubstitute(String.Empty);
}
);
Mapper.CreateMap<StatusReportItemViewModel, StatusItem>();
Mapper.CreateMap<Project, ProjectViewModel>();
Mapper.CreateMap<Tag, TagViewModel>();
//.ForMember(m => m.StatusReportId, opt => opt.M);
//.ForMember(dest => dest.ProjectLeadFullName, opt => opt.MapFrom(src => src.Project.Lead.FullName))
//.ForMember(dest => dest.ProjectTeamLeadFullName, opt => opt.MapFrom(src => src.Project.Team.Lead.FullName));
}
示例10: RefRepositoryTestMethods
internal RefRepositoryTestMethods(ICommitRepository cmrepo, IStreamedBlobRepository blrepo, ITreeRepository trrepo, ITagRepository tgrepo, IRefRepository rfrepo)
{
this.cmrepo = cmrepo;
this.blrepo = blrepo;
this.trrepo = trrepo;
this.tgrepo = tgrepo;
this.rfrepo = rfrepo;
}
示例11: SearchController
public SearchController(IArticleService articleService, ITagRepository tagRepository,
IBlogService blogService, IUserService userService)
{
_articleService = articleService;
_tagRepository = tagRepository;
_blogService = blogService;
_userService = userService;
}
示例12: PropertyValueController
public PropertyValueController(ITagRepository tagRepo,
ICategoryPropertyRepository tagpropertyRepo,
ICategoryPropertyValueRepository tagpropertyvalRepo)
{
_tagRepo = tagRepo;
_tagpropertyRepo = tagpropertyRepo;
_tagpropertyvalueRepo = tagpropertyvalRepo;
}
示例13: IncomingMessageProcessor
public IncomingMessageProcessor(IMessageRepository messageRepository, ITagRepository tagRepository, IMessageParser messageParser, IValidMessageReceiver validMessageReceiver, IAllMessageReceiver allMessageReceiver)
{
_messageRepository = messageRepository;
_messageParser = messageParser;
_tagRepository = tagRepository;
_validMessageReceiver = validMessageReceiver;
_allMessageReceiver = allMessageReceiver;
}
示例14: PostsController
public PostsController(IPostRepository postRepository, ITagRepository tagRepository, ISettingsProvider settingsProvider)
{
_postRepository = postRepository;
_tagRepository = tagRepository;
_settingsProvider = settingsProvider;
PageSize = _settingsProvider.GetSettings().PageSize;
}
示例15: TagController
public TagController(
ITagRepository tagRepository,
IArticleTagRepository atRepository
)
{
_tagRepository = tagRepository;
_atRepository = atRepository;
}