Ejemplo n.º 1
0
 public static Repository BitbucketCreateRepository(this Context context, BitbucketCreateRepositoryOptions options)
 {
     return(BitbucketCreateRepositoryAsync(context, options).Result);
 }
Ejemplo n.º 2
0
 public static async Task <Repository> BitbucketCreateRepositoryAsync(this Context context, BitbucketCreateRepositoryOptions options)
 {
     using (var client = new BitbucketClient(options))
     {
         return(await client.CreateRepositoryAsync(options.OwnerUsername, options.RepositorySlug, options.NewRepository));
     }
 }