Here are the examples of the csharp api System.Threading.Tasks.TaskCompletionSource.TrySetResult(Outcome) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : AmqpSendTask.cs
with Apache License 2.0
from apache
with Apache License 2.0
from apache
private static void OnOutcome(ILink link, global::Amqp.Message message, Outcome outcome, object state)
{
var thisPtr = (AmqpSendTask) state;
thisPtr.timer?.Dispose();
thisPtr.TrySetResult(outcome);
}