コード例 #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
ファイル: LiteApiOptions.cs プロジェクト: crazyants/LiteApi
 /// <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);
 }