本文整理汇总了C#中BinaryReader.ReadLongAsTimespan方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryReader.ReadLongAsTimespan方法的具体用法?C# BinaryReader.ReadLongAsTimespan怎么用?C# BinaryReader.ReadLongAsTimespan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BinaryReader
的用法示例。
在下文中一共展示了BinaryReader.ReadLongAsTimespan方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TcpDiscoverySpi
/// <summary>
/// Initializes a new instance of the <see cref="TcpDiscoverySpi"/> class.
/// </summary>
/// <param name="reader">The reader.</param>
internal TcpDiscoverySpi(BinaryReader reader)
{
IpFinder = reader.ReadBoolean() ? TcpDiscoveryIpFinderBase.ReadInstance(reader) : null;
SocketTimeout = reader.ReadLongAsTimespan();
AckTimeout = reader.ReadLongAsTimespan();
MaxAckTimeout = reader.ReadLongAsTimespan();
NetworkTimeout = reader.ReadLongAsTimespan();
JoinTimeout = reader.ReadLongAsTimespan();
}
示例2: TcpDiscoverySpi
/// <summary>
/// Initializes a new instance of the <see cref="TcpDiscoverySpi"/> class.
/// </summary>
/// <param name="reader">The reader.</param>
internal TcpDiscoverySpi(BinaryReader reader)
{
IpFinder = reader.ReadBoolean() ? TcpDiscoveryIpFinderBase.ReadInstance(reader) : null;
SocketTimeout = reader.ReadLongAsTimespan();
AckTimeout = reader.ReadLongAsTimespan();
MaxAckTimeout = reader.ReadLongAsTimespan();
NetworkTimeout = reader.ReadLongAsTimespan();
JoinTimeout = reader.ReadLongAsTimespan();
ForceServerMode = reader.ReadBoolean();
ClientReconnectDisabled = reader.ReadBoolean();
LocalAddress = reader.ReadString();
ReconnectCount = reader.ReadInt();
LocalPort = reader.ReadInt();
LocalPortRange = reader.ReadInt();
MaxMissedHeartbeats = reader.ReadInt();
MaxMissedClientHeartbeats = reader.ReadInt();
StatisticsPrintFrequency = reader.ReadLongAsTimespan();
IpFinderCleanFrequency = reader.ReadLongAsTimespan();
ThreadPriority = reader.ReadInt();
HeartbeatFrequency = reader.ReadLongAsTimespan();
TopologyHistorySize = reader.ReadInt();
}
示例3: TcpCommunicationSpi
/// <summary>
/// Initializes a new instance of the <see cref="TcpCommunicationSpi"/> class.
/// </summary>
/// <param name="reader">The reader.</param>
internal TcpCommunicationSpi(BinaryReader reader)
{
AckSendThreshold = reader.ReadInt();
ConnectTimeout = reader.ReadLongAsTimespan();
DirectBuffer = reader.ReadBoolean();
DirectSendBuffer = reader.ReadBoolean();
IdleConnectionTimeout = reader.ReadLongAsTimespan();
LocalAddress = reader.ReadString();
LocalPort = reader.ReadInt();
LocalPortRange = reader.ReadInt();
MaxConnectTimeout = reader.ReadLongAsTimespan();
MessageQueueLimit = reader.ReadInt();
ReconnectCount = reader.ReadInt();
SelectorsCount = reader.ReadInt();
SlowClientQueueLimit = reader.ReadInt();
SocketReceiveBufferSize = reader.ReadInt();
SocketSendBufferSize = reader.ReadInt();
TcpNoDelay = reader.ReadBoolean();
UnacknowledgedMessagesBufferSize = reader.ReadInt();
}