Пример #1
0
        public Function3Worker(
            ILoger <Function3Worker> logger,
            IStreamBlobReader reader,
            IFeedReader feedReader,
            IQueue <ChannelUpdate> queue,
            IBlobPathGenerator pathGenerator,
            IBlobContainer blobContainer,
            ISerializer serializer,
            INewsWriter newsWriter,
            IHashSum hasher)
        {
            Ensure.NotNull(logger, nameof(logger));
            Ensure.NotNull(reader, nameof(reader));
            Ensure.NotNull(feedReader, nameof(feedReader));
            Ensure.NotNull(queue, nameof(queue));
            Ensure.NotNull(pathGenerator, nameof(pathGenerator));
            Ensure.NotNull(blobContainer, nameof(blobContainer));
            Ensure.NotNull(serializer, nameof(serializer));
            Ensure.NotNull(newsWriter, nameof(newsWriter));

            this.logger        = logger;
            this.reader        = reader;
            this.feedReader    = feedReader;
            this.queue         = queue;
            this.pathGenerator = pathGenerator;
            this.blobContainer = blobContainer;
            this.serializer    = serializer;
            this.newsWriter    = newsWriter;
            this.hasher        = hasher;
        }
Пример #2
0
        public Function2Worker(
            ILoger <Function2Worker> log,
            IChannelsDownloadsReader downloadsReader,
            IBlobPathGenerator blobPathGenerator,
            IHttpDownloader httpDownloader,
            IBlobContainer blobContainer,
            IChannelsDownloadsWriter downloadsWriter,
            ISerializer serializer,
            IHashSum hasher)
        {
            Ensure.NotNull(log, nameof(log));
            Ensure.NotNull(downloadsReader, nameof(downloadsReader));
            Ensure.NotNull(blobPathGenerator, nameof(blobPathGenerator));
            Ensure.NotNull(httpDownloader, nameof(httpDownloader));
            Ensure.NotNull(blobContainer, nameof(blobContainer));
            Ensure.NotNull(downloadsWriter, nameof(downloadsWriter));
            Ensure.NotNull(serializer, nameof(serializer));
            Ensure.NotNull(hasher, nameof(hasher));

            this.log               = log;
            this.downloadsReader   = downloadsReader;
            this.blobPathGenerator = blobPathGenerator;
            this.httpDownloader    = httpDownloader;
            this.blobContainer     = blobContainer;
            this.downloadsWriter   = downloadsWriter;
            this.serializer        = serializer;
            this.hasher            = hasher;
        }