Table of Contents

Namespace Sportradar.LiveData.Sdk.Common.Utils

Classes

AutoExpireDictionary<K, V>
CloningDictionary<K, V>
CommonUtils
DiffEngine
FtpLib
LevelTypeConverter
MathExt
ObjectReflectionFormatter

Provides utilities for generating formatted string representations of object properties using reflection.

StreamWrapper

Another workaround for a .NET bug (http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/f4c3d019-aecd-4fc6-9dea-680f04faa900)

NetworkStream

  • non-blocking Read() returns 0 bytes when there is nothing to read
  • IOException when "the underlying Socket is closed." -> reconnect
  • Write() is thread-safe

SslStream

  • >non-blocking Read() throws IOException -> no need to reconnect
  • after the exception a subsequent non-blocking Read() (when there is nothing to read) returns 5 bytes of SSL keep-alive data (23 3 1 0 17) 23 is TLS application protocol, 3 1 means TLS 1.0, 3 0 would be SSL 3.0
  • Write() is NOT thread-safe

Unify the behavior to NetworkStream behavior.

StringUtils
TimeKeeper
TimeKeeperResponse
ToStringBuilder<T>
XmlUtils

Interfaces

IResequencer<T>

Stateful component that allows to obtain items in correct sequence.

IStash<T>

Stateful component that allows to stash elements until needed. You get duplicate detection and ordering guarantees.

Enums

FtpProtocol