2 instantiations of RpcResourceState
Aspire.Cli.Tests (2)
TestServices\TestAppHostCliBackchannel.cs (2)
76
yield return new
RpcResourceState
84
yield return new
RpcResourceState
15 references to RpcResourceState
aspire (11)
Backchannel\AppHostCliBackchannel.cs (5)
19
IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync(CancellationToken cancellationToken);
117
public async IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync([EnumeratorCancellation] CancellationToken cancellationToken)
121
IAsyncEnumerable<
RpcResourceState
>? resourceStates = null;
129
resourceStates = await rpc.InvokeWithCancellationAsync<IAsyncEnumerable<
RpcResourceState
>>(
145
await foreach (
var
state in EnumerateWithReconnect(resourceStates, cancellationToken))
Backchannel\BackchannelJsonSerializerContext.cs (2)
25
[JsonSerializable(typeof(IAsyncEnumerable<
RpcResourceState
>))]
26
[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<
RpcResourceState
>))]
Commands\RunCommand.cs (4)
300
await foreach (
var
resourceState in resourceStates.WithCancellation(cancellationToken))
553
private readonly Dictionary<string,
RpcResourceState
> _resourceStates = new();
555
public void ProcessResourceState(
RpcResourceState
resourceState, Action<string, string> endpointWriter)
557
if (_resourceStates.TryGetValue(resourceState.Resource, out
var
existingResourceState))
Aspire.Cli.Tests (4)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
826
public async IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync([EnumeratorCancellation] CancellationToken cancellationToken)
TestServices\TestAppHostCliBackchannel.cs (3)
18
public Func<CancellationToken, IAsyncEnumerable<
RpcResourceState
>>? GetResourceStatesAsyncCallback { get; set; }
59
public async IAsyncEnumerable<
RpcResourceState
> GetResourceStatesAsync([EnumeratorCancellation]CancellationToken cancellationToken)
66
await foreach (
var
resourceState in resourceStates)