Exemple #1
0
 /// <summary>
 /// Deletes image list with the list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> DeleteAsync(this IListManagementImageLists operations, string listId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(listId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Gets all the Image Lists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <ImageList> > GetAllImageListsAsync(this IListManagementImageLists operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAllImageListsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <summary>
 /// Creates an image list.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='contentType'>
 /// The content type.
 /// </param>
 /// <param name='body'>
 /// Schema of the body.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ImageList> CreateAsync(this IListManagementImageLists operations, string contentType, Body body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(contentType, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #4
0
 /// <summary>
 /// Deletes image list with the list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 public static string Delete(this IListManagementImageLists operations, string listId)
 {
     return(operations.DeleteAsync(listId).GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <summary>
 /// Returns the details of the image list with list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 public static ImageList GetDetails(this IListManagementImageLists operations, string listId)
 {
     return(operations.GetDetailsAsync(listId).GetAwaiter().GetResult());
 }
Exemple #6
0
 /// <summary>
 /// Refreshes the index of the list with list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 public static RefreshIndex RefreshIndexMethod(this IListManagementImageLists operations, string listId)
 {
     return(operations.RefreshIndexMethodAsync(listId).GetAwaiter().GetResult());
 }
Exemple #7
0
 /// <summary>
 /// Gets all the Image Lists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IList <ImageList> GetAllImageLists(this IListManagementImageLists operations)
 {
     return(operations.GetAllImageListsAsync().GetAwaiter().GetResult());
 }
Exemple #8
0
 /// <summary>
 /// Creates an image list.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='contentType'>
 /// The content type.
 /// </param>
 /// <param name='body'>
 /// Schema of the body.
 /// </param>
 public static ImageList Create(this IListManagementImageLists operations, string contentType, Body body)
 {
     return(operations.CreateAsync(contentType, body).GetAwaiter().GetResult());
 }