Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DomainController"/> class.
 /// </summary>
 /// <param name="commandProcessor">The command processor.</param>
 /// <param name="domainRepository">The domain repository.</param>
 /// <param name="feedRepository">The feed repository.</param>
 /// <param name="pipeRepository">The pipe repository.</param>
 public DomainController(
     IAmACommandProcessor commandProcessor,
     IAmARepository<Domain> domainRepository,
     IAmARepository<Feed> feedRepository,
     IAmARepository<Pipe> pipeRepository)
 {
     _commandProcessor = commandProcessor;
     _domainRepository = domainRepository;
     _feedRepository = feedRepository;
     _pipeRepository = pipeRepository;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}" /> class.
 /// </summary>
 /// <param name="joinRepository">The join repository.</param>
 /// <param name="logger">The logger.</param>
 public AddJoinCommandHandler(IAmARepository <Join> joinRepository, ILog logger) : base(logger)
 {
     this.joinRepository = joinRepository;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}" /> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 /// <param name="logger">The logger.</param>
 public DeletePipeCommandHandler(IAmARepository <Pipe> pipeRepository, ILog logger) : base(logger)
 {
     this.pipeRepository = pipeRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="feedRepository"></param>
 /// <param name="commandProcessor"></param>
 /// <param name="logger">The logger.</param>
 public AddJoinToFeedCommandHandler(IAmARepository <Feed> feedRepository, IAmACommandProcessor commandProcessor, ILog logger) : base(logger)
 {
     this.feedRepository   = feedRepository;
     this.commandProcessor = commandProcessor;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="logger">The logger.</param>
 public AddPipeToDomainCommandHandler(IAmARepository <Domain> repository, ILog logger) : base(logger)
 {
     this.repository = repository;
 }
Ejemplo n.º 6
0
 public FeedController(IAmACommandProcessor commandProcessor, IAmARepository <Feed> feedRepository)
 {
     this.commandProcessor = commandProcessor;
     this.feedRepository   = feedRepository;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JoinController"/> class.
 /// </summary>
 /// <param name="joinRepository">The join repository.</param>
 public JoinController(IAmARepository <Join> joinRepository)
 {
     _joinRepository = joinRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}" /> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 /// <param name="commandProcessor">The command processor.</param>
 /// <param name="logger">The logger.</param>
 public AddJoinToPipeCommandHandler(IAmARepository <Pipe> pipeRepository, IAmACommandProcessor commandProcessor, ILog logger)
 {
     _pipeRepository   = pipeRepository;
     _commandProcessor = commandProcessor;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageRetriever"/> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 public MessageRetriever(IAmARepository <Pipe> pipeRepository)
 {
     _pipeRepository = pipeRepository;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PipeRetriever"/> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 public PipeRetriever(IAmARepository <Pipe> pipeRepository)
 {
     this.pipeRepository = pipeRepository;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DomainRetriever"/> class.
 /// </summary>
 /// <param name="domainRepository">The domain repository.</param>
 /// <param name="feedRepository">The feed repository.</param>
 public DomainRetriever(IAmARepository <Domain> domainRepository, IAmARepository <Feed> feedRepository, IAmARepository <Pipe> pipeRepository)
 {
     this.feedRepository   = feedRepository;
     this.pipeRepository   = pipeRepository;
     this.domainRepository = domainRepository;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JoinController"/> class.
 /// </summary>
 /// <param name="joinRepository">The join repository.</param>
 public JoinController(IAmARepository<Join> joinRepository)
 {
     _joinRepository = joinRepository;
 }
 public IUseCredentials Repositories(IAmARepository<Domain> domainRepository, IAmARepository<Feed> feedRepository)
 {
     _domainRepository = domainRepository;
     _feedRepository = feedRepository;
     return this;
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeedRetriever"/> class.
 /// </summary>
 /// <param name="feedRepository">The feed repository.</param>
 public FeedRetriever(IAmARepository<Feed> feedRepository)
 {
     _feedRepository = feedRepository;
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteFeedCommandHandler"/> class.
 /// </summary>
 /// <param name="feedRepository">The feed repository.</param>
 /// <param name="commandProcessor">The command processor.</param>
 /// <param name="log">The log.</param>
 public DeleteFeedCommandHandler(IAmARepository <Feed> feedRepository, IAmACommandProcessor commandProcessor, ILog log)
 {
     _feedRepository   = feedRepository;
     _commandProcessor = commandProcessor;
 }
Ejemplo n.º 16
0
 public IUseCredentials  Repositories(IAmARepository <Domain> domainRepository, IAmARepository <Feed> feedRepository)
 {
     this.domainRepository = domainRepository;
     this.feedRepository   = feedRepository;
     return(this);
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeedController"/> class.
 /// </summary>
 /// <param name="commandProcessor">The command processor.</param>
 /// <param name="feedRepository">The feed repository.</param>
 /// <param name="cachingHandler">The caching handler, used to invalidate related resources</param>
 public FeedController(IAmACommandProcessor commandProcessor, IAmARepository<Feed> feedRepository, ICachingHandler cachingHandler)
 {
     _commandProcessor = commandProcessor;
     _feedRepository = feedRepository;
     _cachingHandler = cachingHandler;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="feedRepository"></param>
 /// <param name="logger">The logger.</param>
 public AddMessageToFeedCommandHandler(IAmARepository <Feed> feedRepository, ILog logger) : base(logger)
 {
     this.feedRepository = feedRepository;
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JoinRetriever"/> class.
 /// </summary>
 /// <param name="joinRepository">The join repository.</param>
 /// <param name="logger">The logger.</param>
 public JoinRetriever(IAmARepository<Join> joinRepository)
 {
     _joinRepository = joinRepository;
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeedController"/> class.
 /// </summary>
 /// <param name="commandProcessor">The command processor.</param>
 /// <param name="feedRepository">The feed repository.</param>
 /// <param name="cachingHandler">The caching handler, used to invalidate related resources</param>
 public FeedController(IAmACommandProcessor commandProcessor, IAmARepository <Feed> feedRepository, ICachingHandler cachingHandler)
 {
     this.commandProcessor = commandProcessor;
     this.feedRepository   = feedRepository;
     this.cachingHandler   = cachingHandler;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoveFeedFromDomainCommandHandler"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="logger">The logger.</param>
 public RemoveFeedFromDomainCommandHandler(IAmARepository <Domain> repository, ILog logger) : base(logger)
 {
     this.repository = repository;
 }
Ejemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JoinRetriever"/> class.
 /// </summary>
 /// <param name="joinRepository">The join repository.</param>
 /// <param name="logger">The logger.</param>
 public JoinRetriever(IAmARepository <Join> joinRepository)
 {
     _joinRepository = joinRepository;
 }
Ejemplo n.º 23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}" /> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 /// <param name="logger">The logger.</param>
 public DeleteMessageCommandHandler(IAmARepository <Pipe> pipeRepository, IAmACommandProcessor commandProcessor, ILog logger)
 {
     _pipeRepository   = pipeRepository;
     _commandProcessor = commandProcessor;
 }
Ejemplo n.º 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageRetriever"/> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 public MessageRetriever(IAmARepository<Pipe> pipeRepository)
 {
     _pipeRepository = pipeRepository;
 }
Ejemplo n.º 25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}" /> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 /// <param name="logger">The logger.</param>
 public DeleteMessageCommandHandler(IAmARepository <Pipe> pipeRepository, IAmACommandProcessor commandProcessor, ILog logger) : base(logger)
 {
     this.pipeRepository   = pipeRepository;
     this.commandProcessor = commandProcessor;
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}" /> class.
 /// </summary>
 /// <param name="joinRepository">The join repository.</param>
 /// <param name="logger">The logger.</param>
 public AddJoinCommandHandler(IAmARepository <Join> joinRepository, ILog logger)
 {
     _joinRepository = joinRepository;
 }
Ejemplo n.º 27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}" /> class.
 /// </summary>
 /// <param name="pipeRepository">The pipe repository.</param>
 /// <param name="logger">The logger.</param>
 public DeletePipeCommandHandler(IAmARepository <Pipe> pipeRepository, ILog logger)
 {
     _pipeRepository = pipeRepository;
 }
Ejemplo n.º 28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="feedRepository"></param>
 /// <param name="commandProcessor"></param>
 /// <param name="logger">The logger.</param>
 public AddJoinToFeedCommandHandler(IAmARepository <Feed> feedRepository, IAmACommandProcessor commandProcessor, ILog logger)
 {
     _feedRepository   = feedRepository;
     _commandProcessor = commandProcessor;
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DomainRetriever"/> class.
 /// </summary>
 /// <param name="domainRepository">The domain repository.</param>
 /// <param name="feedRepository">The feed repository.</param>
 public DomainRetriever(IAmARepository<Domain> domainRepository, IAmARepository<Feed> feedRepository, IAmARepository<Pipe> pipeRepository)
 {
     _feedRepository = feedRepository;
     _pipeRepository = pipeRepository;
     _domainRepository = domainRepository;
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeedRetriever"/> class.
 /// </summary>
 /// <param name="feedRepository">The feed repository.</param>
 public FeedRetriever(IAmARepository <Feed> feedRepository)
 {
     this.feedRepository = feedRepository;
 }
Ejemplo n.º 31
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageController"/> class.
 /// </summary>
 /// <param name="commandProcessor"></param>
 /// <param name="pipeRepository">The pipe repository.</param>
 public MessageController(IAmACommandProcessor commandProcessor, IAmARepository <Pipe> pipeRepository)
 {
     _commandProcessor = commandProcessor;
     _pipeRepository   = pipeRepository;
 }
Ejemplo n.º 32
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageController"/> class.
 /// </summary>
 /// <param name="commandProcessor"></param>
 /// <param name="pipeRepository">The pipe repository.</param>
 public MessageController(IAmACommandProcessor commandProcessor, IAmARepository<Pipe> pipeRepository)
 {
     _commandProcessor = commandProcessor;
     _pipeRepository = pipeRepository;
 }
Ejemplo n.º 33
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteFeedCommandHandler"/> class.
 /// </summary>
 /// <param name="feedRepository">The feed repository.</param>
 /// <param name="commandProcessor">The command processor.</param>
 /// <param name="log">The log.</param>
 public DeleteFeedCommandHandler(IAmARepository <Feed> feedRepository, IAmACommandProcessor commandProcessor, ILog log) : base(log)
 {
     this.feedRepository   = feedRepository;
     this.commandProcessor = commandProcessor;
 }
Ejemplo n.º 34
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="feedRepository"></param>
 /// <param name="commandProcessor"></param>
 public AddFeedCommandHandler(ILog logger, IAmARepository <Feed> feedRepository, IAmACommandProcessor commandProcessor) : base(logger)
 {
     _feedRepository   = feedRepository;
     _commandProcessor = commandProcessor;
 }