1 instantiation of BackchannelLogEntry
Aspire.Hosting (1)
Backchannel\BackchannelLoggerProvider.cs (1)
100var entry = new BackchannelLogEntry
19 references to BackchannelLogEntry
Aspire.Hosting (11)
Backchannel\AppHostRpcTarget.cs (3)
30public async IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync([EnumeratorCancellation] CancellationToken cancellationToken) 54foreach (var entry in snapshot) 61await foreach (var entry in AsyncEnumerableUtils.ReadUntilCancelledAsync(channel.Reader.ReadAllAsync(linkedToken), linkedToken).ConfigureAwait(false))
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1937public IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync(CancellationToken cancellationToken = default)
Backchannel\BackchannelLoggerProvider.cs (7)
11private readonly Queue<BackchannelLogEntry> _replayBuffer = new(); 13private readonly Dictionary<int, Channel<BackchannelLogEntry>> _subscribers = []; 23internal (List<BackchannelLogEntry> Snapshot, int SubscriberId, Channel<BackchannelLogEntry> Channel) Subscribe() 25var channel = Channel.CreateUnbounded<BackchannelLogEntry>(); 46internal void WriteEntry(BackchannelLogEntry entry) 100var entry = new BackchannelLogEntry
Aspire.Hosting.Tests (8)
Backchannel\AppHostRpcTargetCancellationTests.cs (3)
34await foreach (var _ in target.GetAppHostLogEntriesAsync(cts.Token)) 55await foreach (var _ in target.GetAppHostLogEntriesAsync(cts.Token)) 79await foreach (var _ in target.GetAppHostLogEntriesAsync(CancellationToken.None))
Backchannel\BackchannelLoggerProviderTests.cs (5)
66var entry = Assert.Single(snapshot); 137Assert.True(channel1.Reader.TryRead(out var entry1a)); 139Assert.True(channel1.Reader.TryRead(out var entry1b)); 142Assert.True(channel2.Reader.TryRead(out var entry2a)); 144Assert.True(channel2.Reader.TryRead(out var entry2b));