27 references to BoundedChannelFullMode
Aspire.Dashboard (1)
Telemetry\DashboardTelemetrySender.cs (1)
35
FullMode =
BoundedChannelFullMode
.DropOldest,
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\SignalR\common\Shared\MessageBuffer.cs (1)
32
private readonly Channel<long> _waitForAck = Channel.CreateBounded<long>(new BoundedChannelOptions(1) { FullMode =
BoundedChannelFullMode
.DropOldest });
Microsoft.AspNetCore.SignalR.Core (1)
src\SignalR\common\Shared\MessageBuffer.cs (1)
32
private readonly Channel<long> _waitForAck = Channel.CreateBounded<long>(new BoundedChannelOptions(1) { FullMode =
BoundedChannelFullMode
.DropOldest });
System.Threading.Channels (24)
System\Threading\Channels\BoundedChannel.cs (10)
17
private readonly
BoundedChannelFullMode
_mode;
53
/// <param name="itemDropped">Delegate that will be invoked when an item is dropped from the channel. See <see cref="
BoundedChannelFullMode
"/>.</param>
54
internal BoundedChannel(int bufferedCapacity,
BoundedChannelFullMode
mode, bool runContinuationsAsynchronously, Action<T>? itemDropped)
412
else if (parent._mode ==
BoundedChannelFullMode
.Wait)
418
else if (parent._mode ==
BoundedChannelFullMode
.DropWrite)
431
T droppedItem = parent._mode ==
BoundedChannelFullMode
.DropNewest ?
490
if (parent._items.Count < parent._bufferedCapacity || parent._mode !=
BoundedChannelFullMode
.Wait)
569
else if (parent._mode ==
BoundedChannelFullMode
.Wait)
593
else if (parent._mode ==
BoundedChannelFullMode
.DropWrite)
606
T droppedItem = parent._mode ==
BoundedChannelFullMode
.DropNewest ?
System\Threading\Channels\Channel.cs (4)
36
/// Channels created with this method apply the <see cref="
BoundedChannelFullMode
.Wait"/>
41
capacity > 0 ? new BoundedChannel<T>(capacity,
BoundedChannelFullMode
.Wait, runContinuationsAsynchronously: true, itemDropped: null) :
42
capacity == 0 ? new RendezvousChannel<T>(
BoundedChannelFullMode
.Wait, runContinuationsAsynchronously: true, itemDropped: null) :
56
/// <param name="itemDropped">Delegate that will be called when item is being dropped from channel. See <see cref="
BoundedChannelFullMode
"/>.</param>
System\Threading\Channels\ChannelOptions.cs (7)
48
private
BoundedChannelFullMode
_mode =
BoundedChannelFullMode
.Wait;
80
public
BoundedChannelFullMode
FullMode
87
case
BoundedChannelFullMode
.Wait:
88
case
BoundedChannelFullMode
.DropNewest:
89
case
BoundedChannelFullMode
.DropOldest:
90
case
BoundedChannelFullMode
.DropWrite:
System\Threading\Channels\RendezvousChannel.cs (3)
46
/// <param name="itemDropped">Delegate that will be invoked when an item is dropped from the channel. See <see cref="
BoundedChannelFullMode
"/>.</param>
47
internal RendezvousChannel(
BoundedChannelFullMode
mode, bool runContinuationsAsynchronously, Action<T>? itemDropped)
49
_dropWrites = mode is not
BoundedChannelFullMode
.Wait;