22 references to BoundedChannelFullMode
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 (20)
System\Threading\Channels\BoundedChannel.cs (10)
17
private readonly
BoundedChannelFullMode
_mode;
45
/// <param name="itemDropped">Delegate that will be invoked when an item is dropped from the channel. See <see cref="
BoundedChannelFullMode
"/>.</param>
46
internal BoundedChannel(int bufferedCapacity,
BoundedChannelFullMode
mode, bool runContinuationsAsynchronously, Action<T>? itemDropped)
415
else if (parent._mode ==
BoundedChannelFullMode
.Wait)
421
else if (parent._mode ==
BoundedChannelFullMode
.DropWrite)
434
T droppedItem = parent._mode ==
BoundedChannelFullMode
.DropNewest ?
499
if (parent._items.Count < parent._bufferedCapacity || parent._mode !=
BoundedChannelFullMode
.Wait)
590
else if (parent._mode ==
BoundedChannelFullMode
.Wait)
612
else if (parent._mode ==
BoundedChannelFullMode
.DropWrite)
625
T droppedItem = parent._mode ==
BoundedChannelFullMode
.DropNewest ?
System\Threading\Channels\Channel.cs (3)
38
/// Channels created with this method apply the <see cref="
BoundedChannelFullMode
.Wait"/>
48
return new BoundedChannel<T>(capacity,
BoundedChannelFullMode
.Wait, runContinuationsAsynchronously: true, itemDropped: null);
63
/// <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;
77
public
BoundedChannelFullMode
FullMode
84
case
BoundedChannelFullMode
.Wait:
85
case
BoundedChannelFullMode
.DropNewest:
86
case
BoundedChannelFullMode
.DropOldest:
87
case
BoundedChannelFullMode
.DropWrite: