コード例 #1
0
 /// <summary>
 /// Put complex types with datetime properties
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='complexBody'>
 /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task PutDateTimeAsync(this IPrimitiveOperations operations, DatetimeWrapperInner complexBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     await operations.PutDateTimeWithHttpMessagesAsync(complexBody, null, cancellationToken).ConfigureAwait(false);
 }
コード例 #2
0
 /// <summary>
 /// Put complex types with datetime properties
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='complexBody'>
 /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'
 /// </param>
 public static void PutDateTime(this IPrimitiveOperations operations, DatetimeWrapperInner complexBody)
 {
     System.Threading.Tasks.Task.Factory.StartNew(s => ((IPrimitiveOperations)s).PutDateTimeAsync(complexBody), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
コード例 #3
0
 /// <summary>
 /// Put complex types with datetime properties
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='complexBody'>
 /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'
 /// </param>
 public static void PutDateTime(this IPrimitiveOperations operations, DatetimeWrapperInner complexBody)
 {
     operations.PutDateTimeAsync(complexBody).GetAwaiter().GetResult();
 }
コード例 #4
0
 /// <summary>
 /// Put complex types with datetime properties
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='complexBody'>
 /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PutDateTimeAsync(this IPrimitiveOperations operations, DatetimeWrapperInner complexBody, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.PutDateTimeWithHttpMessagesAsync(complexBody, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #5
0
 /// <summary>
 /// Put complex types with datetime properties
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='complexBody'>
 /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task PutDateTimeAsync(this IPrimitiveOperations operations, DatetimeWrapperInner complexBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     await operations.PutDateTimeWithHttpMessagesAsync(complexBody, null, cancellationToken).ConfigureAwait(false);
 }
コード例 #6
0
 /// <summary>
 /// Put complex types with datetime properties
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='complexBody'>
 /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'
 /// </param>
 public static void PutDateTime(this IPrimitiveOperations operations, DatetimeWrapperInner complexBody)
 {
     System.Threading.Tasks.Task.Factory.StartNew(s => ((IPrimitiveOperations)s).PutDateTimeAsync(complexBody), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None,  System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }