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

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