当前位置: 首页>>代码示例>>C#>>正文


C# BinaryReader.ReadLongAsTimespan方法代码示例

本文整理汇总了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();
        }
开发者ID:DoudTechData,项目名称:ignite,代码行数:14,代码来源:TcpDiscoverySpi.cs

示例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();
        }
开发者ID:RazmikMkrtchyan,项目名称:ignite,代码行数:28,代码来源:TcpDiscoverySpi.cs

示例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();
 }
开发者ID:RazmikMkrtchyan,项目名称:ignite,代码行数:24,代码来源:TcpCommunicationSpi.cs


注:本文中的BinaryReader.ReadLongAsTimespan方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。