Operator Explicit
Explicit(EventIdEnum<TDerived> to EventId)
Provides an implicit conversion to Microsoft.Extensions.Logging.EventId instances for use with logger facilities.
Declaration
public static explicit operator EventId(EventIdEnum<TDerived> logEvent)
Parameters
Type | Name | Description |
---|---|---|
EventIdEnum<TDerived> | logEvent | The EventIdEnum<TDerived> enumeration member instance to convert. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Logging.EventId | A new Microsoft.Extensions.Logging.EventId instance from the enumeration member instance. |