ReceiverExtensions Class

Extension methods for the Receiver application.

Definition

Namespace: MobileTrack.Receiver.Extensions
Assembly: MobileTrack.Receiver (in MobileTrack.Receiver.exe) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
internal static class ReceiverExtensions
Inheritance
Object    ReceiverExtensions

Methods

CountChar Counts the number of occurrences of a specific character in a string.
DeviceRequestTypeToEventCode(DeviceRequestType) Convert a DeviceRequestType back to a TL401K event code. Returns null when there is no sensible TL401K event code for the given request type.
DeviceRequestTypeToEventCode(String) Convert a DeviceRequestType value back to a TL401K event code. Returns null when there is no sensible TL401K event code for the given request type.
EventCodeToDeviceRequestType Convert a TL401K event code to a DeviceRequestType.
LogBufferString Logs when a new buffer string comes in
LogDeviceInfoMissing Logs when a device's info is missing.
LogDeviceNotActive Logs when a device is not active.
LogDeviceNotIdentified Logs when a device cannot be identified.
LogDeviceTerminatedConnection 
LogFailedDeviceJsonPayload Logs when deserialization of a device JSON payload fails.
LogFailedDeviceProtocolParsing Logs when parsing of a device protocol fails.
LogInvalidEventDateTime Logs when a device message is received with an invalid EventDateTime.
LogInvalidJson Logs when a device message is received with invalid JSON format.
LogMessage JSON to log
LogNewTcpConnection Logs when a new TCP connection is established.
LogSendingToEventHandler Log that a message is sent to the EventHandler.
LogStartTcpListener Logs the start of the TCP listener.
LogTerminatingJunkMessage Logs when a junk message is received and the connection is terminated.
LogUnknownProtocol Logs if the device receiver couldn't determine the protocol of the message.

Fields

SessionId The unique identifier for the current session.

See Also