LogLayerTimestampTryAddTimestamp Method

Adds a LogLayerTimestamp to logBase only if one is not already present.

Definition

Namespace: Alteruna.Multiplayer.Core.Log
Assembly: Alteruna.Multiplayer (in Alteruna.Multiplayer.dll) Version: 2.1.3+c5328b35489e83c42e288435f5acf6115fd519e0
C#
public static LogBase TryAddTimestamp(
	LogBase logBase
)

Parameters

logBase  LogBase
The existing log chain to potentially augment.

Return Value

LogBase
The original logBase if it already contains a timestamp layer, otherwise a new LogLayerTimestamp wrapping it.

See Also