Пример #1
0
 /// <summary>
 /// Returns the repository build configuration status of the app
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='includeInactive'>
 /// Include inactive configurations if none are active
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <RepoConfig> > ListAsync(this IRepositoryConfigurations operations, string ownerName, string appName, bool?includeInactive = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(ownerName, appName, includeInactive, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Removes the configuration for the respository
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SuccessResponse> DeleteAsync(this IRepositoryConfigurations operations, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(ownerName, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #3
0
 /// <summary>
 /// Configures the repository for build
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='repo'>
 /// The repository information
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static SuccessResponse CreateOrUpdate(this IRepositoryConfigurations operations, RepoInfo repo, string ownerName, string appName)
 {
     return(operations.CreateOrUpdateAsync(repo, ownerName, appName).GetAwaiter().GetResult());
 }
Пример #4
0
 /// <summary>
 /// Returns the repository build configuration status of the app
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='includeInactive'>
 /// Include inactive configurations if none are active
 /// </param>
 public static IList <RepoConfig> List(this IRepositoryConfigurations operations, string ownerName, string appName, bool?includeInactive = default(bool?))
 {
     return(operations.ListAsync(ownerName, appName, includeInactive).GetAwaiter().GetResult());
 }
Пример #5
0
 /// <summary>
 /// Removes the configuration for the respository
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static SuccessResponse Delete(this IRepositoryConfigurations operations, string ownerName, string appName)
 {
     return(operations.DeleteAsync(ownerName, appName).GetAwaiter().GetResult());
 }