public Task<byte[]> GetContentAsync() { if (_binaryContent == null && _stringContent == null) { return new byte[0].AsCompletedTask(); } return Task.Run(() => _binaryContent != null ? _binaryContent() : _contentEncoding.GetBytes(_stringContent())); }