NServiceBus.TaskCompletionSourceAdapter.TrySetResult C# (CSharp) Method

TrySetResult() public method

public TrySetResult ( object result ) : void
result object
return void
        public void TrySetResult(object result)
        {
            var method = taskCompletionSource.GetType().GetMethod("TrySetResult");
            method.Invoke(taskCompletionSource, new[]
            {
                result
            });
        }