static async Task <int> XAsync() { // async が付いたメソッド内では ↑ の await 型は使えない var x = new await(); // コンパイル エラー // どうしても使いたかったら @ を付けてエスケープ var y = new @await(); // これならコンパイルできる }
static async Task<int> XAsync() { // async が付いたメソッド内では ↑ の await 型は使えない var x = new await(); // コンパイル エラー // どうしても使いたかったら @ を付けてエスケープ var y = new @await(); // これならコンパイルできる }
private async Task Search() { repository = new FriendRepository(); var lstFriends = repository.GetAllByFirstLetter(Filter); await Friends = ObservableCollection <Grouping <string, Friend> >(lstFriends); }
/// <summary> /// Structure-preserving map. Maps this Record to the new Record of 5. /// In case the the specified function returns the Record, use FlatMapAsync instead. /// </summary> public static async Task <Record <R1, R2, R3, R4, R5> > MapAsync <T1, T2, T3, T4, T5, R1, R2, R3, R4, R5>(this Task <Record <T1, T2, T3, T4, T5> > record, Func <T1, T2, T3, T4, T5, Task <(R1, R2, R3, R4, R5)> > selector) => await(await record).MapAsync(selector).ConfigureAwait(false);
new Solution(await _solutionRepository.ByIdAsync(id, cancellationToken).ConfigureAwait(false)
Write(await Html.PartialAsync("../../hazır/contents/".Insert(21, (string)@Model.post.content)));
await writer.WriteAsync(await reader.ReadToEndAsync());
Write(await Component.InvokeAsync("NToastNotify"));
=> (ConvertFromBlock( await(reader ?? throw new ArgumentNullException(SR.NullArgument, nameof(reader)))
var responseString = await(await RequestViessmannApi(uri)).Content.ReadAsStringAsync();
await(await AddParametersAsync(cmd, parameters)).ExecuteNonQueryWithOptionalTokenAsync(cancellationToken);
new DataService(await GetContainerAsync(), _converters) :
Write(await Html.PartialAsync("_header"));
int.TryParse(await res.Content.ReadAsStringAsync(), out int result)
new MySqlReader(await CreateCommand(sql, paramaters).ExecuteReaderAsync().ConfigureAwait(false));
Write(await Html.PartialAsync("_SelectLanguagePartial"));
new ToUpdatePreview(await CarsManager.Instance.GetByIdAsync(Target.CarId) ?? throw new Exception(), Target)
Write(await Html.RenderComponentAsync <App>(RenderMode.ServerPrerendered));
=> await(await User.GetOrCreateDMChannelAsync()).SendEmbedAsync(Description, Title, Footer, ImageUrl, ThumbnailUrl, Url);
=> await ConnectAsync(await Options.DnsClient !.GetIPFromHostName(host, addressFamily, GrandCancel, connectTimeout), port, default, connectTimeout);
await writer.WriteAsync(await transform(msg, cancellationToken), cancellationToken);
return(Ok(await Mediator.Send(model, cancellationToken)));
Write(await DisplayAsync(await New.AdminDashboard()));
await (await arg) { }
(filePath, new MemoryStream(await LoadFileDataAsync(filePath)))
await ProcessResult(await t);
VerifyDiagnosticResults(await GetSortedDiagnosticsAsync(sources, additionalFiles, additionalMetadataReferences, analyzers, verifier, cancellationToken).ConfigureAwait(false), analyzers, expected, verifier);
/// <summary> /// Structure-preserving map. Maps this Record to the new Record of 2. /// In case the the specified function returns the Record, use FlatMapAsync instead. /// </summary> public static async Task <Record <R1, R2> > MapAsync <T1, T2, R1, R2>(this Task <Record <T1, T2> > record, Func <T1, T2, Task <(R1, R2)> > selector) => await(await record).MapAsync(selector).ConfigureAwait(false);
await(await arg) { }
=> await(await asyncOutcome).Zip(fn);
return(await Deserialize <T>(await SendAcmeAsync(
=> Collection(await QueryAsync(query));