Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetInstrumentState()

InstrumentState System.Diagnostics.Metrics.AggregationManager.GetInstrumentState ( Instrument instrument)
inlineprivate

Definition at line 214 of file AggregationManager.cs.

215 {
217 {
218 lock (this)
219 {
221 {
223 {
225 if (value != null)
226 {
229 }
230 break;
231 }
232 }
233 }
234 }
235 return value;
236 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool TryAdd(TKey key, TValue value)
readonly List< Predicate< Instrument > > _instrumentConfigFuncs
readonly ConcurrentDictionary< Instrument, InstrumentState > _instrumentStates
InstrumentState BuildInstrumentState(Instrument instrument)

References System.Diagnostics.Metrics.AggregationManager._instrumentConfigFuncs, System.Diagnostics.Metrics.AggregationManager._instrumentStates, System.Diagnostics.Metrics.AggregationManager.BuildInstrumentState(), System.Collections.Generic.Dictionary< TKey, TValue >.TryAdd(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Diagnostics.Metrics.AggregationManager.AggregationManager().