Skip to content

IJournalStorage.CreateIfNotExistsAsync(IReadOnlyDictionary<string, string>, CancellationToken)

CreateIfNotExistsAsync(IReadOnlyDictionary<string, string>, CancellationToken)

virtual
View source
public virtual ValueTask<bool> CreateIfNotExistsAsync(IReadOnlyDictionary<string, string>? metadata = null, CancellationToken cancellationToken = default(CancellationToken))
Creates this journal storage instance if it does not already exist.

Parameters

metadataIReadOnlyDictionary<string, string>
Initial caller-owned metadata properties.
cancellationTokenCancellationToken
The cancellation token.

Returns

true if storage was created; otherwise, false.