コード例 #1
0
 public HistoryController(ClanAndPeopleService clanService, IWriteRepository <StoryContent, Guid> writeRepository, ContextService contextService, IStoryReadRepository storyReadRepository) : base("History", "history")
 {
     _clanService         = clanService;
     _writeRepository     = writeRepository;
     _contextService      = contextService;
     _storyReadRepository = storyReadRepository;
 }
コード例 #2
0
ファイル: ClanService.cs プロジェクト: stuart-mck/BryceFamily
 public ClanAndPeopleService(ILogger <ClanAndPeopleService> logger, IPersonReadRepository peopleReadRepository, IMemoryCache memoryCache, IUnionReadRepository unionReadRepository, IStoryReadRepository storyReadRepository)
 {
     this._logger          = logger;
     _peopleReadRepository = peopleReadRepository;
     _memoryCache          = memoryCache;
     _unionReadRepository  = unionReadRepository;
     _storyReadRepository  = storyReadRepository;
 }
コード例 #3
0
ファイル: StoryManager.cs プロジェクト: Wouyoshi/projects
        /// <summary>Initializes a new instance of the <see cref="StoryManager"/> class.</summary>
        /// <param name="storyReadRepository">The story read repository.</param>
        /// <param name="storyRepository">The story repository.</param>
        public StoryManager(IStoryReadRepository storyReadRepository, IStoryRepository storyRepository)
        {
            if (storyReadRepository == null)
            {
                throw new ArgumentNullException("storyReadRepository");
            }
            if (storyRepository == null)
            {
                throw new ArgumentNullException("storyRepository");
            }

            this.storyReadRepository = storyReadRepository;
            this.storyRepository     = storyRepository;
        }
コード例 #4
0
ファイル: StoryManager.cs プロジェクト: Wouyoshi/projects
        /// <summary>Initializes a new instance of the <see cref="StoryManager"/> class.</summary>
        /// <param name="storyReadRepository">The story read repository.</param>
        /// <param name="storyRepository">The story repository.</param>
        public StoryManager(IStoryReadRepository storyReadRepository, IStoryRepository storyRepository)
        {
            if (storyReadRepository == null)
            {
                throw new ArgumentNullException("storyReadRepository");
            }
            if (storyRepository == null)
            {
                throw new ArgumentNullException("storyRepository");
            }

            this.storyReadRepository = storyReadRepository;
            this.storyRepository = storyRepository;
        }