/
aprogrammer
/
serilog
Обзор
Документация
Войти
/
aprogrammer
/
serilog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/Serilog/Core/ILogEventPropertyValueFactory.cs
19 строк
848 B
Ivan Maximov
Optimize AddPropertyIfAbsent (#1872)
03 май 2023, 04:32
Не верифицирован
03 май 2023, 04:32
5291b4b
Код
Авторство
О чём код?
namespace Serilog.Core; /// <summary> /// Supports the policy-driven construction of <see cref="LogEventPropertyValue"/>s given /// regular .NET objects. /// </summary> public interface ILogEventPropertyValueFactory { /// <summary> /// Create a <see cref="LogEventPropertyValue"/> given a .NET object and destructuring /// strategy. /// </summary> /// <param name="value">The value of the property.</param> /// <param name="destructureObjects">If <see langword="true"/>, and the value is a non-primitive, non-array type, /// then the value will be converted to a structure; otherwise, unknown types will /// be converted to scalars, which are generally stored as strings.</param> /// <returns>The value.</returns> LogEventPropertyValue CreatePropertyValue(object? value, bool destructureObjects = false); }