NLog.GDC.Get C# (CSharp) Méthode

Get() public static méthode

Gets the Global Diagnostics Context named item.
If the value isn't a string already, this call locks the LogFactory for reading the LoggingConfiguration.DefaultCultureInfo needed for converting to string.
public static Get ( string item ) : string
item string Item name.
Résultat string
        public static string Get(string item)
        {
            return GlobalDiagnosticsContext.Get(item);
        }

Same methods

GDC::Get ( string item, IFormatProvider formatProvider ) : string