Пример #1
0
 public static Repository BitbucketCreateRepository(this Context context, BitbucketCreateRepositoryOptions options)
 {
     return(BitbucketCreateRepositoryAsync(context, options).Result);
 }
Пример #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));
     }
 }