/// <summary> /// Create new Gateway /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='newGateway'> /// The entity to create /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <object> PostBynewGatewayAsync(this IGateways operations, CreateGatewayDto newGateway, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PostBynewGatewayWithHttpMessagesAsync(newGateway, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }