Beispiel #1
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IProfile.
 /// </param>
 /// <param name='request'>
 /// Required.
 /// </param>
 public static object PostBannerByRequest(this IProfile operations, SetImage request)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IProfile)s).PostBannerByRequestAsync(request);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Beispiel #2
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IProfile.
 /// </param>
 /// <param name='request'>
 /// Required.
 /// </param>
 /// <param name='cancellationToken'>
 /// Cancellation token.
 /// </param>
 public static async Task<object> PostBannerByRequestAsync(this IProfile operations, SetImage request, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Microsoft.Rest.HttpOperationResponse<object> result = await operations.PostBannerByRequestWithOperationResponseAsync(request, cancellationToken).ConfigureAwait(false);
     return result.Body;
 }