コード例 #1
0
ファイル: MetaWeblogAPI.cs プロジェクト: lg31415/Graphite
 public MetaWeblog()
 {
     //Note: This is because I am not sure how else to handle DI with http handlers
     _userTasks = ServiceLocator.Current.GetInstance<IUserTasks>();
     _postTasks = ServiceLocator.Current.GetInstance<IPostTasks>();
     _tagTasks = ServiceLocator.Current.GetInstance<ITagTasks>();
 }
コード例 #2
0
 public PatientTasks(
     ITagTasks tagTasks,
     IBaseMapper baseMapper
     )
 {
     this.tagTasks   = Requires.IsNotNull(tagTasks, nameof(tagTasks));
     this.baseMapper = Requires.IsNotNull(baseMapper, nameof(baseMapper));
 }
コード例 #3
0
 public TagRegistrationTasks(
     ITagTasks tagTasks,
     IBaseMapper baseMapper
     )
 {
     this.tagTasks   = Requires.IsNotNull(tagTasks, nameof(tagTasks));
     this.baseMapper = Requires.IsNotNull(baseMapper, nameof(baseMapper));
 }
コード例 #4
0
 public SearchController(
     ISearchTasks searchTasks,
     ITagTasks tagTasks,
     IMapper<IList<Tag>, SearchPageViewModel> searchPageViewModelMapper,
     IMapper<IList<Assertion>, IList<Tag>, SearchResultsPageViewModel> searchResultsPageViewModelMapper)
 {
     this.searchTasks = searchTasks;
     this.tagTasks = tagTasks;
     this.searchPageViewModelMapper = searchPageViewModelMapper;
     this.searchResultsPageViewModelMapper = searchResultsPageViewModelMapper;
 }
コード例 #5
0
 public SearchController(
     ISearchTasks searchTasks,
     ITagTasks tagTasks,
     IMapper <IList <Tag>, SearchPageViewModel> searchPageViewModelMapper,
     IMapper <IList <Assertion>, IList <Tag>, SearchResultsPageViewModel> searchResultsPageViewModelMapper)
 {
     this.searchTasks = searchTasks;
     this.tagTasks    = tagTasks;
     this.searchPageViewModelMapper        = searchPageViewModelMapper;
     this.searchResultsPageViewModelMapper = searchResultsPageViewModelMapper;
 }
コード例 #6
0
 public TagController(
     ITagTasks tagTasks, ITagPageViewModelMapper tagPageViewModelMappper)
 {
     this.tagTasks = tagTasks;
     this.tagPageViewModelMappper = tagPageViewModelMappper;
 }
コード例 #7
0
ファイル: MetaWeblogAPI.cs プロジェクト: lg31415/Graphite
 public MetaWeblog(IUserTasks userTasks, IPostTasks postTasks, ITagTasks tagTasks)
 {
     _userTasks = userTasks;
     _postTasks = postTasks;
     _tagTasks = tagTasks;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TagController"/> class.
 /// </summary>
 /// <param name="tagTasks">The tag tasks.</param>
 public TagController(
     ITagTasks tagTasks
     )
 {
     this.tagTasks = Requires.IsNotNull(tagTasks, nameof(tagTasks));
 }
コード例 #9
0
ファイル: TagController.cs プロジェクト: lg31415/Graphite
 public TagController(ITagTasks tagTasks)
 {
     _tagTasks = tagTasks;
 }
コード例 #10
0
 public TagController(ITagTasks tagTasks)
 {
     this.tagTasks = tagTasks;
 }
コード例 #11
0
 public TagController(ITagTasks tagTasks, ICachingService cachingService)
 {
     this.tagTasks = tagTasks;
     this.cachingService = cachingService;
 }
コード例 #12
0
 public TagController(ITagTasks tagTasks, ICachingService cachingService)
 {
     this.tagTasks       = tagTasks;
     this.cachingService = cachingService;
 }