/// <summary>
 /// 默认构造函数
 /// 设置RequestCodecFactory、ResponseCodecFactory为BinaryCodecFactory
 /// 设置ReadWriteTimeout、Timeout为int.MaxValue
 /// </summary>
 public SolrUpdateConnection()
 {
     RequestCodecFactory  = new BinaryCodecFactory();
     ResponseCodecFactory = new BinaryCodecFactory();
     ContentType          = "application/javabin";
     ReadWriteTimeout     = int.MaxValue;
     Timeout = int.MaxValue;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 默认构造函数
 /// 设置ResponseCodecFactory为BinaryCodecFactory
 /// 设置Cache为RuntimeCache
 /// </summary>
 public SolrQueryConnection()
 {
     ResponseCodecFactory = new BinaryCodecFactory();
     Cache = new RuntimeCache <T>();
 }