LoggerExtensionsLogResourceNotValid Method
Invoked when a resource derived from
IIdLabel is invalid when we are trying
to execute logic on it. It is
not invoked if it was nicely caught in a validator!
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
[LoggerMessageAttribute(1054, LogLevel.Error, "{Id} of {Type} is not valid: {PropertyName}, {StatusCode}")]
public static void LogResourceNotValid(
this ILogger logger,
Guid id,
ResourceType type,
string propertyName,
StatusCode statusCode
)
- logger ILogger
- Logger
- id Guid
- Identity of the resource
- type ResourceType
- Type of resource
- propertyName String
- Name of the faulty property
- statusCode StatusCode
- Status code of the failure
In Visual Basic and C#, you can call this method as an instance method on any object of type
ILogger. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).