Exemplo n.º 1
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IUserImages.
 /// </param>
 /// <param name='mediaId'>
 /// Required.
 /// </param>
 /// <param name='extension'>
 /// Required.
 /// </param>
 /// <param name='commentRequest'>
 /// Required.
 /// </param>
 public static object PostCommentByMediaidAndExtensionAndCommentrequest(this IUserImages operations, int mediaId, string extension, CommentRequest commentRequest)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IUserImages)s).PostCommentByMediaidAndExtensionAndCommentrequestAsync(mediaId, extension, commentRequest);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Exemplo n.º 2
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.ITimeline.
 /// </param>
 /// <param name='entryId'>
 /// Required.
 /// </param>
 /// <param name='commentRequest'>
 /// Required.
 /// </param>
 /// <param name='cancellationToken'>
 /// Cancellation token.
 /// </param>
 public static async Task<object> PostCommentByEntryidAndCommentrequestAsync(this ITimeline operations, int entryId, CommentRequest commentRequest, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Microsoft.Rest.HttpOperationResponse<object> result = await operations.PostCommentByEntryidAndCommentrequestWithOperationResponseAsync(entryId, commentRequest, cancellationToken).ConfigureAwait(false);
     return result.Body;
 }
Exemplo n.º 3
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.ITimeline.
 /// </param>
 /// <param name='entryId'>
 /// Required.
 /// </param>
 /// <param name='commentRequest'>
 /// Required.
 /// </param>
 public static object PostCommentByEntryidAndCommentrequest(this ITimeline operations, int entryId, CommentRequest commentRequest)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ITimeline)s).PostCommentByEntryidAndCommentrequestAsync(entryId, commentRequest);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Exemplo n.º 4
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IUserImages.
 /// </param>
 /// <param name='mediaId'>
 /// Required.
 /// </param>
 /// <param name='extension'>
 /// Required.
 /// </param>
 /// <param name='commentRequest'>
 /// Required.
 /// </param>
 /// <param name='cancellationToken'>
 /// Cancellation token.
 /// </param>
 public static async Task<object> PostCommentByMediaidAndExtensionAndCommentrequestAsync(this IUserImages operations, int mediaId, string extension, CommentRequest commentRequest, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Microsoft.Rest.HttpOperationResponse<object> result = await operations.PostCommentByMediaidAndExtensionAndCommentrequestWithOperationResponseAsync(mediaId, extension, commentRequest, cancellationToken).ConfigureAwait(false);
     return result.Body;
 }