Skip to content

Commit 0c8e12f

Browse files
committed
Rename factory methods to match the return type
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.
1 parent ac2149b commit 0c8e12f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/CloudStorageAccount/BlobAccountExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public static class BlobAccountExtensions
1616
/// </summary>
1717
[EditorBrowsable(EditorBrowsableState.Never)]
1818
public static BlobServiceClient CreateCloudBlobClient(this CloudStorageAccount account)
19-
=> CreateBlobClient(account);
19+
=> CreateBlobServiceClient(account);
2020

2121
/// <summary>
2222
/// Creates a Blob service client from the given account.
2323
/// </summary>
24-
public static BlobServiceClient CreateBlobClient(this CloudStorageAccount account)
24+
public static BlobServiceClient CreateBlobServiceClient(this CloudStorageAccount account)
2525
{
2626
if (account.BlobEndpoint == null)
2727
throw new InvalidOperationException("No blob endpoint configured.");

src/CloudStorageAccount/QueueAccountExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public static class QueueAccountExtensions
1616
/// </summary>
1717
[EditorBrowsable(EditorBrowsableState.Never)]
1818
public static QueueServiceClient CreateCloudQueueClient(this CloudStorageAccount account)
19-
=> CreateQueueClient(account);
19+
=> CreateQueueServiceClient(account);
2020

2121
/// <summary>
2222
/// Creates a Queue service client from the given account.
2323
/// </summary>
24-
public static QueueServiceClient CreateQueueClient(this CloudStorageAccount account)
24+
public static QueueServiceClient CreateQueueServiceClient(this CloudStorageAccount account)
2525
{
2626
if (account.QueueEndpoint == null)
2727
throw new InvalidOperationException("No queue endpoint configured.");

src/CloudStorageAccount/TableAccountExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public static class TableAccountExtensions
1616
/// </summary>
1717
[EditorBrowsable(EditorBrowsableState.Never)]
1818
public static TableServiceClient CreateCloudTableClient(this CloudStorageAccount account)
19-
=> CreateTableClient(account);
19+
=> CreateTableServiceClient(account);
2020

2121
/// <summary>
2222
/// Creates a Table service client from the given account.
2323
/// </summary>
24-
public static TableServiceClient CreateTableClient(this CloudStorageAccount account)
24+
public static TableServiceClient CreateTableServiceClient(this CloudStorageAccount account)
2525
{
2626
if (account.TableEndpoint == null)
2727
throw new InvalidOperationException("No table endpoint configured.");

0 commit comments

Comments
 (0)