Пример #1
0
 /// <summary>
 /// Adds an additional query model binder.
 /// </summary>
 /// <param name="queryModelBinder">The query model binder to add.</param>
 /// <exception cref="System.ArgumentNullException"></exception>
 public void AddAdditionalQueryModelBinder(IQueryModelBinder queryModelBinder)
 {
     if (queryModelBinder == null)
     {
         throw new ArgumentNullException(nameof(queryModelBinder));
     }
     _queryBinders.Add(queryModelBinder);
 }
Пример #2
0
 /// <summary>
 /// Adds an additional query model binder.
 /// </summary>
 /// <param name="queryModelBinder">The query model binder.</param>
 /// <returns>This instance</returns>
 /// <exception cref="System.ArgumentNullException"></exception>
 public LiteApiOptions AddAdditionalQueryModelBinder(IQueryModelBinder queryModelBinder)
 {
     if (queryModelBinder == null)
     {
         throw new System.ArgumentNullException(nameof(queryModelBinder));
     }
     AdditionalQueryModelBinders.Add(queryModelBinder);
     return(this);
 }