ConfigExtensions Class
Namespace
Statiq.Common
Base Types
  • object
graph BT Type-->Base0["object"] Type["ConfigExtensions"] class Type type-node

Syntax

public static class ConfigExtensions

Methods

Name Return Value Summary
EnsureNonDocument<TConfig>(TConfig, string) TConfig
Ensures that the config is not null and doesn't require a document and throws System.ArgumentNullException or ArgumentException if it is.
static
EnsureNonDocumentIfNonNull<TConfig>(TConfig, string) TConfig
Ensures that the config doesn't require a document, but only if not null and throws ArgumentException if it does.
static
EnsureNonNull<TConfig>(TConfig, string) TConfig
Ensures that the config is not null and throws System.ArgumentNullException if it is.
static
FilterAsync(IEnumerable<IDocument>, Config<bool>, IExecutionContext) IAsyncEnumerable<IDocument>
Filters the documents.
static
FilterAsync(IEnumerable<IDocument>, ICollection<Config<bool>>, IExecutionContext) IAsyncEnumerable<IDocument>
Filters the documents using "or" logic on multiple predicates.
static
GetValueAsync<TValue>(Config<object>, IDocument, IExecutionContext, string) Task<TValue>
static
GetValueAsync<TValue>(Config<TValue>, IDocument, IExecutionContext, Func<TValue, TValue>) Task<TValue>
static
IsFalse(Config<bool>) Config<bool>
static
TryGetValueAsync<TValue>(Config<object>, IDocument, IExecutionContext) Task<TValue>
static