Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GroupingDataflowBlockOptions.cs
Go to the documentation of this file.
1
using
System.Diagnostics
;
2
3
namespace
System.Threading.Tasks.Dataflow
;
4
5
[DebuggerDisplay(
"TaskScheduler = {TaskScheduler}, MaxMessagesPerTask = {MaxMessagesPerTask}, BoundedCapacity = {BoundedCapacity}, Greedy = {Greedy}, MaxNumberOfGroups = {MaxNumberOfGroups}"
)]
6
public
class
GroupingDataflowBlockOptions
:
DataflowBlockOptions
7
{
8
internal
new
static
readonly
GroupingDataflowBlockOptions
Default
=
new
GroupingDataflowBlockOptions
();
9
10
private
bool
_greedy
=
true
;
11
12
private
long
_maxNumberOfGroups
= -1
L
;
13
14
public
bool
Greedy
15
{
16
get
17
{
18
return
_greedy
;
19
}
20
set
21
{
22
_greedy
=
value
;
23
}
24
}
25
26
public
long
MaxNumberOfGroups
27
{
28
get
29
{
30
return
_maxNumberOfGroups
;
31
}
32
set
33
{
34
if
(
value
<= 0 &&
value
!= -1)
35
{
36
throw
new
ArgumentOutOfRangeException
(
"value"
);
37
}
38
_maxNumberOfGroups
=
value
;
39
}
40
}
41
42
internal
long
ActualMaxNumberOfGroups
43
{
44
get
45
{
46
if
(
_maxNumberOfGroups
!= -1)
47
{
48
return
_maxNumberOfGroups
;
49
}
50
return
long
.MaxValue;
51
}
52
}
53
54
internal
new
GroupingDataflowBlockOptions
DefaultOrClone
()
55
{
56
if
(
this
!=
Default
)
57
{
58
return
new
GroupingDataflowBlockOptions
59
{
60
TaskScheduler
= base.
TaskScheduler
,
61
CancellationToken
= base.
CancellationToken
,
62
MaxMessagesPerTask
= base.MaxMessagesPerTask,
63
BoundedCapacity
= base.BoundedCapacity,
64
NameFormat
= base.NameFormat,
65
EnsureOrdered
= base.EnsureOrdered,
66
Greedy
=
Greedy
,
67
MaxNumberOfGroups
=
MaxNumberOfGroups
68
};
69
}
70
return
this
;
71
}
72
}
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Threading.Tasks.Dataflow.DataflowBlockOptions.BoundedCapacity
int BoundedCapacity
Definition
DataflowBlockOptions.cs:81
System.Threading.Tasks.Dataflow.DataflowBlockOptions.NameFormat
string NameFormat
Definition
DataflowBlockOptions.cs:97
System.Threading.Tasks.Dataflow.DataflowBlockOptions.EnsureOrdered
bool EnsureOrdered
Definition
DataflowBlockOptions.cs:113
System.Threading.Tasks.Dataflow.DataflowBlockOptions.MaxMessagesPerTask
int MaxMessagesPerTask
Definition
DataflowBlockOptions.cs:53
System.Threading.Tasks.Dataflow.DataflowBlockOptions
Definition
DataflowBlockOptions.cs:7
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions.Default
static new readonly GroupingDataflowBlockOptions Default
Definition
GroupingDataflowBlockOptions.cs:8
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions.ActualMaxNumberOfGroups
long ActualMaxNumberOfGroups
Definition
GroupingDataflowBlockOptions.cs:43
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions._greedy
bool _greedy
Definition
GroupingDataflowBlockOptions.cs:10
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions._maxNumberOfGroups
long _maxNumberOfGroups
Definition
GroupingDataflowBlockOptions.cs:12
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions.DefaultOrClone
new GroupingDataflowBlockOptions DefaultOrClone()
Definition
GroupingDataflowBlockOptions.cs:54
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions.Greedy
bool Greedy
Definition
GroupingDataflowBlockOptions.cs:15
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions.MaxNumberOfGroups
long MaxNumberOfGroups
Definition
GroupingDataflowBlockOptions.cs:27
System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions
Definition
GroupingDataflowBlockOptions.cs:7
System.Threading.Tasks.TaskScheduler.TaskScheduler
TaskScheduler()
Definition
TaskScheduler.cs:155
System.Threading.Tasks.TaskScheduler
Definition
TaskScheduler.cs:10
System.Diagnostics
Definition
AggregationManager.cs:6
System.Threading.Tasks.Dataflow
Definition
BatchedJoinBlockTarget.cs:4
System.ExceptionArgument.value
@ value
System.ConsoleKey.L
@ L
System.Threading.CancellationToken.CancellationToken
CancellationToken(CancellationTokenSource source)
Definition
CancellationToken.cs:29
System.Threading.CancellationToken
Definition
CancellationToken.cs:8
source
System.Threading.Tasks.Dataflow
System.Threading.Tasks.Dataflow
GroupingDataflowBlockOptions.cs
Generated by
1.10.0