You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L14-L20'title='File snippet `configurationandregistration` was extracted from'>snippet source</a> | <ahref='#snippet-configurationandregistration'title='Navigate to start of snippet `configurationandregistration`'>anchor</a></sup>
61
60
<!-- endsnippet -->
62
61
63
62
Sending
@@ -73,7 +72,7 @@ var serialized = JsonConvert.SerializeObject(payload);
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L26-L36'title='File snippet `attachmentsending` was extracted from'>snippet source</a> | <ahref='#snippet-attachmentsending'title='Navigate to start of snippet `attachmentsending`'>anchor</a></sup>
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L42-L49'title='File snippet `attachmentreceiving` was extracted from'>snippet source</a> | <ahref='#snippet-attachmentreceiving'title='Navigate to start of snippet `attachmentreceiving`'>anchor</a></sup>
90
89
<!-- endsnippet -->
91
90
92
91
### Sending a message without exposing the storage account to receivers
@@ -103,7 +102,7 @@ var config = new AzureStorageAttachmentConfiguration(storageConnectionString)
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L54-L63'title='File snippet `configurationandregistrationsas` was extracted from'>snippet source</a> | <ahref='#snippet-configurationandregistrationsas'title='Navigate to start of snippet `configurationandregistrationsas`'>anchor</a></sup>
107
106
<!-- endsnippet -->
108
107
109
108
Sending
@@ -119,7 +118,7 @@ var serialized = JsonConvert.SerializeObject(payload);
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L86-L96'title='File snippet `attachmentsendingsas` was extracted from'>snippet source</a> | <ahref='#snippet-attachmentsendingsas'title='Navigate to start of snippet `attachmentsendingsas`'>anchor</a></sup>
123
122
<!-- endsnippet -->
124
123
125
124
Receiving only mode (w/o Storage account credentials)
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L102-L109'title='File snippet `attachmentreceivingsas` was extracted from'>snippet source</a> | <ahref='#snippet-attachmentreceivingsas'title='Navigate to start of snippet `attachmentreceivingsas`'>anchor</a></sup>
136
135
<!-- endsnippet -->
137
136
138
137
### Configure blob container name
@@ -151,6 +150,27 @@ Default blob identifier property name is "$attachment.blob".
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L68-L80'title='File snippet `configure_blob_name_override` was extracted from'>snippet source</a> | <ahref='#snippet-configure_blob_name_override'title='Navigate to start of snippet `configure_blob_name_override`'>anchor</a></sup>
171
+
<!-- endsnippet -->
172
+
173
+
154
174
### Configure message property for SAS uri to attachment blob
155
175
156
176
Default SAS uri property name is "$attachment.sas.uri".
@@ -170,7 +190,7 @@ Default is to convert any body to attachment.
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L114-L120'title='File snippet `configure_criteria_for_message_max_size_identification` was extracted from'>snippet source</a> | <ahref='#snippet-configure_criteria_for_message_max_size_identification'title='Navigate to start of snippet `configure_criteria_for_message_max_size_identification`'>anchor</a></sup>
174
194
<!-- endsnippet -->
175
195
176
196
### Configuring connection string provider
@@ -184,7 +204,7 @@ The plugin comes with a `PlainTextConnectionStringProvider` and can be used in t
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L126-L131'title='File snippet `configuring_connection_string_provider` was extracted from'>snippet source</a> | <ahref='#snippet-configuring_connection_string_provider'title='Navigate to start of snippet `configuring_connection_string_provider`'>anchor</a></sup>
188
208
<!-- endsnippet -->
189
209
190
210
### Configuring plugin using StorageCredentials (Service or Container SAS)
@@ -195,10 +215,10 @@ var config = new AzureStorageAttachmentConfiguration(provider);
195
215
varcredentials=newStorageCredentials( /*Shared key OR Service SAS OR Container SAS*/);
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L137-L142'title='File snippet `configuring_plugin_using_storagecredentials` was extracted from'>snippet source</a> | <ahref='#snippet-configuring_plugin_using_storagecredentials'title='Navigate to start of snippet `configuring_plugin_using_storagecredentials`'>anchor</a></sup>
199
219
<!-- endsnippet -->
200
220
201
-
See [`StorageCredentials`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.auth.storagecredentials?) for more details.
221
+
See [`StorageCredentials`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.auth.storagecredentials) for more details.
202
222
203
223
### Using attachments with Azure Functions
204
224
@@ -214,7 +234,7 @@ Upload attachment to Azure Storage blob
214
234
//To make it possible to use SAS URI when downloading, use WithBlobSasUri() when creating configuration object
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L147-L152'title='File snippet `upload_attachment_without_registering_plugin` was extracted from'>snippet source</a> | <ahref='#snippet-upload_attachment_without_registering_plugin'title='Navigate to start of snippet `upload_attachment_without_registering_plugin`'>anchor</a></sup>
<sup><ahref='/src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs#L156-L167'title='File snippet `download_attachment_without_registering_plugin` was extracted from'>snippet source</a> | <ahref='#snippet-download_attachment_without_registering_plugin'title='Navigate to start of snippet `download_attachment_without_registering_plugin`'>anchor</a></sup>
Copy file name to clipboardExpand all lines: src/ServiceBus.AttachmentPlugin.Tests/ApprovalFiles/ApiApprovals.AzureStorageAttachmentPlugin.approved.txt
0 commit comments