/// <summary>
 /// Sets a scope that contains variables that can be accessed by the map, reduce and finalize functions.
 /// </summary>
 /// <param name="scope">The scope.</param>
 /// <returns>The builder (so method calls can be chained).</returns>
 public MapReduceOptionsBuilder SetScope(
     IMongoScope scope
     )
 {
     document["scope"] = BsonDocumentWrapper.Create(scope);
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets a scope that contains variables that can be accessed by the map, reduce and finalize functions.
 /// </summary>
 /// <param name="scope">The scope.</param>
 /// <returns>The builder (so method calls can be chained).</returns>
 public static MapReduceOptionsBuilder SetScope(IMongoScope scope)
 {
     return(new MapReduceOptionsBuilder().SetScope(scope));
 }
 /// <summary>
 /// Sets a scope that contains variables that can be accessed by the map, reduce and finalize functions.
 /// </summary>
 /// <param name="scope">The scope.</param>
 /// <returns>The builder (so method calls can be chained).</returns>
 public static MapReduceOptionsBuilder SetScope(IMongoScope scope)
 {
     return new MapReduceOptionsBuilder().SetScope(scope);
 }
 /// <summary>
 /// Sets a scope that contains variables that can be accessed by the map, reduce and finalize functions.
 /// </summary>
 /// <param name="scope">The scope.</param>
 /// <returns>The builder (so method calls can be chained).</returns>
 public MapReduceOptionsBuilder SetScope(IMongoScope scope)
 {
     _document["scope"] = BsonDocumentWrapper.Create(scope);
     return this;
 }
 public MapReduceOptionsBuilder SetScope(
     IMongoScope scope
 )
 {
     document["scope"] = BsonDocument.Wrap(scope);
     return this;
 }