Ejemplo n.º 1
0
 /// <summary>
 /// Gets the users by filter.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='boardId'>
 /// The board identifier.
 /// </param>
 /// <param name='model'>
 /// The model.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <SwitchModel> > GetSwitchesByFilterAsync(this ISoftheonSwitchboard operations, int boardId, SwitchFilterModel model = default(SwitchFilterModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetSwitchesByFilterWithHttpMessagesAsync(boardId, model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the users by filter.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='boardId'>
 /// The board identifier.
 /// </param>
 /// <param name='model'>
 /// The model.
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <IList <SwitchModel> > GetSwitchesByFilterWithHttpMessages(this ISoftheonSwitchboard operations, int boardId, SwitchFilterModel model = default(SwitchFilterModel), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.GetSwitchesByFilterWithHttpMessagesAsync(boardId, model, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the users by filter.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='boardId'>
 /// The board identifier.
 /// </param>
 /// <param name='model'>
 /// The model.
 /// </param>
 public static IList <SwitchModel> GetSwitchesByFilter(this ISoftheonSwitchboard operations, int boardId, SwitchFilterModel model = default(SwitchFilterModel))
 {
     return(operations.GetSwitchesByFilterAsync(boardId, model).GetAwaiter().GetResult());
 }