3 writes to WaitForValueTcs
Aspire.Hosting (1)
Orchestrator\ParameterProcessor.cs (1)
31parameterResource.WaitForValueTcs = new(TaskCreationOptions.RunContinuationsAsynchronously);
Aspire.Hosting.Tests (2)
Orchestrator\ParameterProcessorTests.cs (2)
180param.WaitForValueTcs = new TaskCompletionSource<string>(TaskCreationOptions.RunContinuationsAsynchronously); 269parameterWithMissingValue.WaitForValueTcs = new TaskCompletionSource<string>(TaskCreationOptions.RunContinuationsAsynchronously);
31 references to WaitForValueTcs
Aspire.Hosting (5)
ApplicationModel\ParameterResource.cs (2)
84if (WaitForValueTcs is not null) 87return await WaitForValueTcs.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (3)
77parameterResource.WaitForValueTcs?.TrySetResult(value); 94parameterResource.WaitForValueTcs?.TrySetException(ex); 189parameter.WaitForValueTcs?.TrySetResult(inputValue);
Aspire.Hosting.Tests (26)
Orchestrator\ParameterProcessorTests.cs (26)
36Assert.NotNull(param.WaitForValueTcs); 37Assert.True(param.WaitForValueTcs.Task.IsCompletedSuccessfully); 38Assert.Equal(param.Value, await param.WaitForValueTcs.Task); 60Assert.NotNull(param.WaitForValueTcs); 61Assert.True(param.WaitForValueTcs.Task.IsCompletedSuccessfully); 62Assert.Equal(param.Value, await param.WaitForValueTcs.Task); 109Assert.NotNull(parameterWithMissingValue.WaitForValueTcs); 110Assert.False(parameterWithMissingValue.WaitForValueTcs.Task.IsCompleted); 125Assert.NotNull(parameterWithMissingValue.WaitForValueTcs); 126Assert.True(parameterWithMissingValue.WaitForValueTcs.Task.IsCompleted); 127Assert.True(parameterWithMissingValue.WaitForValueTcs.Task.IsFaulted); 128Assert.IsType<MissingParameterValueException>(parameterWithMissingValue.WaitForValueTcs.Task.Exception?.InnerException); 143Assert.NotNull(parameterWithMissingValue.WaitForValueTcs); 144Assert.False(parameterWithMissingValue.WaitForValueTcs.Task.IsCompleted); 158Assert.NotNull(parameterWithError.WaitForValueTcs); 159Assert.True(parameterWithError.WaitForValueTcs.Task.IsCompleted); 160Assert.True(parameterWithError.WaitForValueTcs.Task.IsFaulted); 161Assert.IsType<InvalidOperationException>(parameterWithError.WaitForValueTcs.Task.Exception?.InnerException); 238Assert.True(param1.WaitForValueTcs!.Task.IsCompletedSuccessfully); 239Assert.True(param2.WaitForValueTcs!.Task.IsCompletedSuccessfully); 240Assert.True(secretParam.WaitForValueTcs!.Task.IsCompletedSuccessfully); 241Assert.Equal("value1", await param1.WaitForValueTcs.Task); 242Assert.Equal("value2", await param2.WaitForValueTcs.Task); 243Assert.Equal("secretValue", await secretParam.WaitForValueTcs.Task); 286Assert.NotNull(parameterWithMissingValue.WaitForValueTcs); 287Assert.False(parameterWithMissingValue.WaitForValueTcs.Task.IsCompleted);