示例#1
0
 public SocketOptions()
 {
     Batch = new BatchOptions {Enabled = true, Extend = TimeSpan.FromMilliseconds(100), MaxExtend = TimeSpan.FromSeconds(1), MaxLetters = 4000};
     Heartbeat = new HeartbeatOptions {Interval = 1000};
     Notification = new NotificationOptions {ReceivedNotifyOnAllAckStates = false};
     NodeId = Guid.NewGuid();
     ReconnectInterval = TimeSpan.FromMilliseconds(1000);
     ShutdownWait = TimeSpan.FromMilliseconds(1500);
     MaximumInitializeTime = TimeSpan.FromMilliseconds(4000);
 }
示例#2
0
 public SocketOptions()
 {
     Batch = new BatchOptions {
         Enabled = true, Extend = TimeSpan.FromMilliseconds(100), MaxExtend = TimeSpan.FromSeconds(1), MaxLetters = 4000
     };
     Heartbeat = new HeartbeatOptions {
         Interval = 1000
     };
     Notification = new NotificationOptions {
         ReceivedNotifyOnAllAckStates = false
     };
     NodeId                = Guid.NewGuid();
     ReconnectInterval     = TimeSpan.FromMilliseconds(1000);
     ShutdownWait          = TimeSpan.FromMilliseconds(1500);
     MaximumInitializeTime = TimeSpan.FromMilliseconds(4000);
 }