Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GroupingDataflowBlockOptions.cs
Go to the documentation of this file.
2
4
5[DebuggerDisplay("TaskScheduler = {TaskScheduler}, MaxMessagesPerTask = {MaxMessagesPerTask}, BoundedCapacity = {BoundedCapacity}, Greedy = {Greedy}, MaxNumberOfGroups = {MaxNumberOfGroups}")]
7{
9
10 private bool _greedy = true;
11
12 private long _maxNumberOfGroups = -1L;
13
14 public bool Greedy
15 {
16 get
17 {
18 return _greedy;
19 }
20 set
21 {
22 _greedy = value;
23 }
24 }
25
27 {
28 get
29 {
30 return _maxNumberOfGroups;
31 }
32 set
33 {
34 if (value <= 0 && value != -1)
35 {
36 throw new ArgumentOutOfRangeException("value");
37 }
39 }
40 }
41
43 {
44 get
45 {
46 if (_maxNumberOfGroups != -1)
47 {
48 return _maxNumberOfGroups;
49 }
50 return long.MaxValue;
51 }
52 }
53
55 {
56 if (this != Default)
57 {
59 {
62 MaxMessagesPerTask = base.MaxMessagesPerTask,
63 BoundedCapacity = base.BoundedCapacity,
64 NameFormat = base.NameFormat,
65 EnsureOrdered = base.EnsureOrdered,
66 Greedy = Greedy,
68 };
69 }
70 return this;
71 }
72}
CancellationToken(CancellationTokenSource source)