Beispiel #1
0
        static async Task <int> XAsync()
        {
            // async が付いたメソッド内では ↑ の await 型は使えない
            var x = new await(); // コンパイル エラー

            // どうしても使いたかったら @ を付けてエスケープ
            var y = new @await(); // これならコンパイルできる
        }
Beispiel #2
0
        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);
        }
Beispiel #4
0
 /// <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);
Beispiel #5
0
 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());
Beispiel #8
0
 Write(await Component.InvokeAsync("NToastNotify"));
 => (ConvertFromBlock(
         await(reader ?? throw new ArgumentNullException(SR.NullArgument, nameof(reader)))
 var responseString = await(await RequestViessmannApi(uri)).Content.ReadAsStringAsync();
Beispiel #11
0
 await(await AddParametersAsync(cmd, parameters)).ExecuteNonQueryWithOptionalTokenAsync(cancellationToken);
Beispiel #12
0
 new DataService(await GetContainerAsync(), _converters) :
Beispiel #13
0
 Write(await Html.PartialAsync("_header"));
Beispiel #14
0
 int.TryParse(await res.Content.ReadAsStringAsync(), out int result)
Beispiel #15
0
 new MySqlReader(await CreateCommand(sql, paramaters).ExecuteReaderAsync().ConfigureAwait(false));
 Write(await Html.PartialAsync("_SelectLanguagePartial"));
Beispiel #17
0
 new ToUpdatePreview(await CarsManager.Instance.GetByIdAsync(Target.CarId) ?? throw new Exception(), Target)
Beispiel #18
0
 Write(await Html.RenderComponentAsync <App>(RenderMode.ServerPrerendered));
Beispiel #19
0
 => await(await User.GetOrCreateDMChannelAsync()).SendEmbedAsync(Description, Title, Footer, ImageUrl, ThumbnailUrl, Url);
 => await ConnectAsync(await Options.DnsClient !.GetIPFromHostName(host, addressFamily, GrandCancel, connectTimeout), port, default, connectTimeout);
Beispiel #21
0
 await writer.WriteAsync(await transform(msg, cancellationToken), cancellationToken);
Beispiel #22
0
 return(Ok(await Mediator.Send(model, cancellationToken)));
Beispiel #23
0
 Write(await DisplayAsync(await New.AdminDashboard()));
Beispiel #24
0
	await (await arg)
	{
	}
Beispiel #25
0
 (filePath, new MemoryStream(await LoadFileDataAsync(filePath)))
Beispiel #26
0
 await ProcessResult(await t);
Beispiel #27
0
 VerifyDiagnosticResults(await GetSortedDiagnosticsAsync(sources, additionalFiles, additionalMetadataReferences, analyzers, verifier, cancellationToken).ConfigureAwait(false), analyzers, expected, verifier);
Beispiel #28
0
 /// <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);
Beispiel #29
0
 await(await arg)
 {
 }
Beispiel #30
0
 => await(await asyncOutcome).Zip(fn);
 return(await Deserialize <T>(await SendAcmeAsync(
Beispiel #32
0
 => Collection(await QueryAsync(query));