public override void Initialize(TElement[] elements) { if (ChildContext != null) { ChildContext.Initialize(elements); } _keys = new TKey[elements.Length]; for (var i = 0; i < _keys.Length; i++) { _keys[i] = _selector(elements[i]); } }
//[ConfigureAwait(false)] internal override async Task Initialize(TElement[] elements) { if (ChildContext != null) { await ChildContext.Initialize(elements).ConfigureAwait(false); } keys = new TKey[elements.Length]; for (var i = 0; i < keys.Length; i++) { keys[i] = await keySelector(elements[i]).ConfigureAwait(false); } }