4 instantiations of RpcResourceState
Aspire.Cli.Tests (4)
Commands\RunCommandTests.cs (2)
2757
yield return new
RpcResourceState
2765
yield return new
RpcResourceState
TestServices\TestAppHostCliBackchannel.cs (2)
87
yield return new
RpcResourceState
95
yield return new
RpcResourceState
15 references to RpcResourceState
aspire (10)
Backchannel\AppHostCliBackchannel.cs (4)
21
IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync(CancellationToken cancellationToken);
140
public IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync(CancellationToken cancellationToken)
142
return InvokeStreamingRpcAsync<
RpcResourceState
>(
143
(rpc, ct) => rpc.InvokeStreamingWithProfilingAsync<
RpcResourceState
>(
Backchannel\BackchannelJsonSerializerContext.cs (2)
28
[JsonSerializable(typeof(IAsyncEnumerable<
RpcResourceState
>))]
29
[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<
RpcResourceState
>))]
Commands\RunCommand.cs (4)
603
await foreach (
var
resourceState in resourceStates.WithCancellation(cancellationToken))
1434
private readonly Dictionary<string,
RpcResourceState
> _resourceStates = new();
1436
public void ProcessResourceState(
RpcResourceState
resourceState, Action<string, string> endpointWriter)
1438
if (_resourceStates.TryGetValue(resourceState.Resource, out
var
existingResourceState))
Aspire.Cli.Tests (5)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1110
public async IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync([EnumeratorCancellation] CancellationToken cancellationToken)
Commands\RunCommandTests.cs (1)
2753
static async IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync(
TestServices\TestAppHostCliBackchannel.cs (3)
19
public Func<CancellationToken, IAsyncEnumerable<
RpcResourceState
>>? GetResourceStatesAsyncCallback { get; set; }
70
public async IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync([EnumeratorCancellation]CancellationToken cancellationToken)
77
await foreach (
var
resourceState in resourceStates)