Пример #1
0
        public async Task Set(ArticleDirectory articleDirectory, CancellationToken token = default)
        {
            articleDirectory.VerifyNotNull(nameof(articleDirectory));

            _logger.LogTrace($"{nameof(Set)}: Writing");
            await _dataLakeStore.Write(ArticleConstants.DirectoryFileName, articleDirectory.ToBytes(), true, token);
        }
Пример #2
0
        public async Task Set(ArticleDirectory record, CancellationToken token = default)
        {
            record.VerifyNotNull(nameof(record));

            _logger.LogTrace($"{nameof(Set)}: actorKey={_actorKey}");

            IDirectoryActor actor = _actorHost !.GetActor <IDirectoryActor>(_actorKey);
            await actor.Set(record, token);
        }
Пример #3
0
        public async Task Set(ArticleDirectory articleDirectory, CancellationToken token)
        {
            articleDirectory.VerifyNotNull(nameof(articleDirectory));

            _logger.LogTrace($"{nameof(Set)}: Writing");
            await _directoryStore.Set(articleDirectory, token);

            _cache.Set(articleDirectory);
        }
        public ArticleDirectorySearch(ArticleDirectory articleDirectory)
        {
            articleDirectory.VerifyNotNull(nameof(articleDirectory));

            _articleDirectory = articleDirectory;
        }
Пример #5
0
 public static void Verify(this ArticleDirectory subject)
 {
     subject.VerifyNotNull(nameof(subject));
     subject.Articles.VerifyNotNull(nameof(subject));
 }