Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BoundedChannelOptions.cs
Go to the documentation of this file.
1
namespace
System.Threading.Channels
;
2
3
public
sealed
class
BoundedChannelOptions
:
ChannelOptions
4
{
5
private
int
_capacity
;
6
7
private
BoundedChannelFullMode
_mode
;
8
9
public
int
Capacity
10
{
11
get
12
{
13
return
_capacity
;
14
}
15
set
16
{
17
if
(
value
< 1)
18
{
19
throw
new
ArgumentOutOfRangeException
(
"value"
);
20
}
21
_capacity
=
value
;
22
}
23
}
24
25
public
BoundedChannelFullMode
FullMode
26
{
27
get
28
{
29
return
_mode
;
30
}
31
set
32
{
33
if
((uint)
value
<= 3u)
34
{
35
_mode
=
value
;
36
return
;
37
}
38
throw
new
ArgumentOutOfRangeException
(
"value"
);
39
}
40
}
41
42
public
BoundedChannelOptions
(
int
capacity
)
43
{
44
if
(
capacity
< 1)
45
{
46
throw
new
ArgumentOutOfRangeException
(
"capacity"
);
47
}
48
Capacity
=
capacity
;
49
}
50
}
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Threading.Channels.BoundedChannelOptions._capacity
int _capacity
Definition
BoundedChannelOptions.cs:5
System.Threading.Channels.BoundedChannelOptions.FullMode
BoundedChannelFullMode FullMode
Definition
BoundedChannelOptions.cs:26
System.Threading.Channels.BoundedChannelOptions.Capacity
int Capacity
Definition
BoundedChannelOptions.cs:10
System.Threading.Channels.BoundedChannelOptions.BoundedChannelOptions
BoundedChannelOptions(int capacity)
Definition
BoundedChannelOptions.cs:42
System.Threading.Channels.BoundedChannelOptions._mode
BoundedChannelFullMode _mode
Definition
BoundedChannelOptions.cs:7
System.Threading.Channels.BoundedChannelOptions
Definition
BoundedChannelOptions.cs:4
System.Threading.Channels.ChannelOptions
Definition
ChannelOptions.cs:4
System.Threading.Channels.BoundedChannelFullMode
BoundedChannelFullMode
Definition
BoundedChannelFullMode.cs:4
System.Threading.Channels
Definition
AsyncOperation.cs:6
System.ExceptionArgument.value
@ value
System.ExceptionArgument.capacity
@ capacity
source
System.Threading.Channels
System.Threading.Channels
BoundedChannelOptions.cs
Generated by
1.10.0