Skip to content

Commit

Permalink
Rename factory methods to match the return type
Browse files Browse the repository at this point in the history
Since there is a TableClient that is different than a TableServiceClient, it might be confusing. And unify the others so there's no asymetric naming.
  • Loading branch information
kzu committed Apr 25, 2022
1 parent ac2149b commit 0c8e12f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/CloudStorageAccount/BlobAccountExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public static class BlobAccountExtensions
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static BlobServiceClient CreateCloudBlobClient(this CloudStorageAccount account)
=> CreateBlobClient(account);
=> CreateBlobServiceClient(account);

/// <summary>
/// Creates a Blob service client from the given account.
/// </summary>
public static BlobServiceClient CreateBlobClient(this CloudStorageAccount account)
public static BlobServiceClient CreateBlobServiceClient(this CloudStorageAccount account)
{
if (account.BlobEndpoint == null)
throw new InvalidOperationException("No blob endpoint configured.");
Expand Down
4 changes: 2 additions & 2 deletions src/CloudStorageAccount/QueueAccountExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public static class QueueAccountExtensions
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static QueueServiceClient CreateCloudQueueClient(this CloudStorageAccount account)
=> CreateQueueClient(account);
=> CreateQueueServiceClient(account);

/// <summary>
/// Creates a Queue service client from the given account.
/// </summary>
public static QueueServiceClient CreateQueueClient(this CloudStorageAccount account)
public static QueueServiceClient CreateQueueServiceClient(this CloudStorageAccount account)
{
if (account.QueueEndpoint == null)
throw new InvalidOperationException("No queue endpoint configured.");
Expand Down
4 changes: 2 additions & 2 deletions src/CloudStorageAccount/TableAccountExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public static class TableAccountExtensions
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static TableServiceClient CreateCloudTableClient(this CloudStorageAccount account)
=> CreateTableClient(account);
=> CreateTableServiceClient(account);

/// <summary>
/// Creates a Table service client from the given account.
/// </summary>
public static TableServiceClient CreateTableClient(this CloudStorageAccount account)
public static TableServiceClient CreateTableServiceClient(this CloudStorageAccount account)
{
if (account.TableEndpoint == null)
throw new InvalidOperationException("No table endpoint configured.");
Expand Down

0 comments on commit 0c8e12f

Please sign in to comment.