Example #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sensorEntity'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SensorEntity> ApiSensorPostAsync(this IHomeAutomationAPI operations, SensorEntity sensorEntity = default(SensorEntity), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ApiSensorPostWithHttpMessagesAsync(sensorEntity, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }