コード例 #1
0
 .FirstOrDefaultAsync(u => u.Id.ToString() == userId, cancellationToken: cancellationToken);
コード例 #2
0
 await VerifyDiagnosticAsync(
     result.Text,
     diagnostics,
     additionalSources : additionalSources,
     options : options,
     cancellationToken : cancellationToken).ConfigureAwait(false);
コード例 #3
0
 if (request.fromId == request.toId || await database.Relationships.AnyAsync(
         x => (x.UserId1 == request.fromId && x.UserId2 == request.toId) ||
         (x.UserId2 == request.fromId && x.UserId1 == request.toId),
         cancellationToken: cancellationToken))
 {
コード例 #4
0
ファイル: PeriodicTimer.cs プロジェクト: z77ma/runtime
 _ctr        = cancellationToken.UnsafeRegister(static (state, cancellationToken) => ((State)state !).Signal(cancellationToken: cancellationToken), this);
コード例 #5
0
                              CancellationToken cancellationToken) => new CallOptions(
 cancellationToken: cancellationToken,
 deadline: DeadlineAfter(operationOptions.TimeoutAfter),
コード例 #6
0
 await VerifyDiagnosticAsync(
     analysis.Source,
     diagnostics,
     additionalSources : additionalSources,
     options : options,
     cancellationToken : cancellationToken).ConfigureAwait(false);
 compilation = await result.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
コード例 #8
0
 if (!await dispatcher.ReceiveArguments(cancellationToken, notValidateExecutionContext).ConfigureAwait(false))
 // Now append the dispose pattern implementation.
 root = await result.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
コード例 #10
0
 return(AutoFit(context, trainData, label, validationData, settings,
                purposeOverrides, cancellationToken, iterationCallback, null));
コード例 #11
0
 => InnerHandler is null ? throw new EonException(message: $"Inner handler not set for this delegating handler.{Environment.NewLine}\tHandler:{this.FmtStr().GNLI2()}") : await base.SendAsync(request : request, cancellationToken : ct).ConfigureAwait(false);
コード例 #12
0
ファイル: Extensions.cs プロジェクト: WS-QA/TeamCloud
 .GetJsonAsync(cancellationToken, completionOption)
 .ContinueWith(task => (task.Result is null ? null : JObject.FromObject(task.Result)) as JObject, cancellationToken, TaskContinuationOptions.OnlyOnRanToCompletion, TaskScheduler.Current);
コード例 #13
0
ファイル: Scd4x.cs プロジェクト: destroyar/iot
 ReadPeriodicMeasurementImpl(cancellationToken, async: true);