Пример #1
0
 /// <summary>
 /// </summary>
 /// <param name="typeDescription">The description of the type to be registered</param>
 /// <param name="shardIndex">Index of the node inside the cluster (0 based)</param>
 /// <param name="shardsInCluster">Nodes in cluster</param>
 public RegisterTypeRequest(TypeDescription typeDescription, int shardIndex = 0, int shardsInCluster = 1)
 {
     TypeDescription = typeDescription;
     ShardIndex      = shardIndex;
     ShardsInCluster = shardsInCluster;
 }
Пример #2
0
 public QueryVisitor(TypeDescription typeDescription)
 {
     _typeDescription = typeDescription ?? throw new ArgumentNullException(nameof(typeDescription));
     RootExpression   = new OrQuery(_typeDescription);
 }