public static Repository BitbucketCreateRepository(this Context context, BitbucketCreateRepositoryOptions options) { return(BitbucketCreateRepositoryAsync(context, options).Result); }
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)); } }