Constructor LoggingProperty
LoggingProperty(String, Object)
Initializes a new LoggingProperty and assigns it to a constant value.
Declaration
public LoggingProperty([Required] string name, object value)
Parameters
Type | Name | Description |
---|---|---|
String | name | Property name. |
Object | value | Property value. |
LoggingProperty(String, Func<Object>)
Initializes a new LoggingProperty and assigns it to a dynamic value.
Declaration
public LoggingProperty([Required] string name, Func<object> func)
Parameters
Type | Name | Description |
---|---|---|
String | name | Property name. |
Func<Object> | func | A function returning the property value. This function will be evaluated every time the Value getter is invoked. |