コード例 #1
0
 /// <summary>
 /// Posts the specified model.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// The model.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BoardModel> CreateBoardAsync(this ISoftheonSwitchboard operations, BoardPostModel model = default(BoardPostModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateBoardWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Posts the specified model.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// The model.
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <BoardModel> CreateBoardWithHttpMessages(this ISoftheonSwitchboard operations, BoardPostModel model = default(BoardPostModel), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.CreateBoardWithHttpMessagesAsync(model, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
コード例 #3
0
 /// <summary>
 /// Posts the specified model.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// The model.
 /// </param>
 public static BoardModel CreateBoard(this ISoftheonSwitchboard operations, BoardPostModel model = default(BoardPostModel))
 {
     return(operations.CreateBoardAsync(model).GetAwaiter().GetResult());
 }