Пример #1
0
 /// <summary>
 ///     Concatenates the handlers of this projection with the handlers of the specified projection.
 /// </summary>
 /// <param name="projection">The projection to concatenate.</param>
 /// <returns>A <see cref="ElasticsearchProjection"/> containing the concatenated handlers.</returns>
 /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="projection"/> is <c>null</c>.</exception>
 public ElasticsearchProjection Concat(ElasticsearchProjection projection)
 {
     if (projection == null)
     {
         throw new ArgumentNullException("projection");
     }
     return(Concat(projection.Handlers));
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ElasticsearchProjectionBuilder" /> class.
 /// </summary>
 public ElasticsearchProjectionBuilder(ElasticsearchProjection projection)
 {
     if (projection == null)
     {
         throw new ArgumentNullException("projection");
     }
     _handlers = projection.Handlers;
 }
Пример #3
0
 /// <summary>
 ///     Concatenates the handlers of this projection with the handlers of the specified projection.
 /// </summary>
 /// <param name="projection">The projection to concatenate.</param>
 /// <returns>A <see cref="ElasticsearchProjection"/> containing the concatenated handlers.</returns>
 /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="projection"/> is <c>null</c>.</exception>
 public ElasticsearchProjection Concat(ElasticsearchProjection projection)
 {
     if (projection == null)
         throw new ArgumentNullException("projection");
     return Concat(projection.Handlers);
 }