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); }
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); }
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; }
public static void Verify(this ArticleDirectory subject) { subject.VerifyNotNull(nameof(subject)); subject.Articles.VerifyNotNull(nameof(subject)); }