Example #1
0
 public async Task <bool> CreateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default)
 {
     return(await primary.CreateAsync(record, cancellationToken).ConfigureAwait(false) &&
            await secondary.CreateAsync(record, cancellationToken).ConfigureAwait(false));
 }