Skip to content

Commit

Permalink
added subscription table name
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesgoeleven committed Mar 17, 2021
1 parent f4ac06b commit cf600ed
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Snippets/ASQ/ASQN_10/Usage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ void RegisterPublisher(EndpointConfiguration configuration)
#endregion
}

void SetSubscriptionTableName(EndpointConfiguration configuration)
{
#region storage_account_subscription_table_name

var transportConfig = configuration.UseTransport<AzureStorageQueueTransport>();
transportConfig.SubscriptionTableName("NewName");

#endregion
}

void MultipleAccountAliasesInsteadOfConnectionStrings1(EndpointConfiguration endpointConfiguration)
{
#region AzureStorageQueueUseMultipleAccountAliasesInsteadOfConnectionStrings1
Expand Down
9 changes: 9 additions & 0 deletions Snippets/ASQ/ASQN_11/Usage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ void RegisterPublisher(EndpointConfiguration configuration)
#pragma warning restore CS0618
}

void SetSubscriptionTableName(EndpointConfiguration configuration)
{
#region storage_account_subscription_table_name

var transport = new AzureStorageQueueTransport("connectionString");
transport.Subscriptions.SubscriptionTableName = "NewName";

#endregion
}
void MultipleAccountAliasesInsteadOfConnectionStrings1(EndpointConfiguration endpointConfiguration)
{
#pragma warning disable CS0618
Expand Down
1 change: 1 addition & 0 deletions transports/azure-storage-queues/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ partial: serialization

partial: config

partial: nativepubsub

## Connection strings

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Native Publish Subscribe

#### SubscriptionTableName

To control the subscription table name, use

snippet: storage_account_subscription_table_name

0 comments on commit cf600ed

Please sign in to comment.