LoggerExtensionsLogAntDeviceState Method
Logs the state of an ANT device. The log level is Debug.
Namespace: SmallEarthTech.AntPlus.Extensions.LoggingAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.2+1406bfb784e6c85bd5d7261241f4f4a1a31b0896
public static void LogAntDeviceState(
this ILogger logger,
AntDevice antDevice,
int timeout,
string methodName = ""
)
<ExtensionAttribute>
Public Shared Sub LogAntDeviceState (
logger As ILogger,
antDevice As AntDevice,
timeout As Integer,
Optional methodName As String = ""
)
public:
[ExtensionAttribute]
static void LogAntDeviceState(
ILogger^ logger,
AntDevice^ antDevice,
int timeout,
String^ methodName = L""
)
[<ExtensionAttribute>]
static member LogAntDeviceState :
logger : ILogger *
antDevice : AntDevice *
timeout : int *
?methodName : string
(* Defaults:
let _methodName = defaultArg methodName ""
*)
-> unit
- logger ILogger
- The logger instance.
- antDevice AntDevice
- The ANT device instance.
- timeout Int32
- The timeout value in milliseconds.
- methodName String (Optional)
- The caller member name.
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).