Skip to content

Commit 62fd547

Browse files
committed
Implement azure storage queues transport
1 parent 0c8f57e commit 62fd547

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

src/BuslyCLI.Console/Factories/RawEndpointFactory.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ private TransportDefinition CreateTransport(TransportConfig transportConfig)
4949

5050
private TransportDefinition CreateAzureStorageQueuesTransport(string connectionString)
5151
{
52-
return new AzureStorageQueueTransport(connectionString);
52+
var transport = new AzureStorageQueueTransport(connectionString);
53+
transport.MessageWrapperSerializationDefinition = new SystemJsonSerializer();
54+
return transport;
5355
}
5456

5557
private TransportDefinition CreateSqlServerTransport(SqlServerTransportConfig sqlServerTransportConfig)

tests/BuslyCLI.Console.Tests/EndToEnd/AzureStorageQueues/AzureStorageQueuesEndToEndTestBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public abstract class AzureStorageQueuesEndToEndTestBase : SingletonTestFixtureB
1010
protected override AzuriteContainer CreateContainer()
1111
{
1212
return new AzuriteBuilder()
13+
.WithCommand("--skipApiVersionCheck")
1314
.Build();
1415
}
1516

tests/BuslyCLI.Console.Tests/EndToEnd/Infrastructure/ITestEndpointFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ public async Task<TestEndpoint> CreateAzureStorageQueuesTestEndpoint(string conn
105105
{
106106
var name = GenerateUniqueEndpointName();
107107
var transport = new AzureStorageQueueTransport(connectionString);
108+
transport.MessageWrapperSerializationDefinition = new SystemJsonSerializer();
109+
108110
return await InternalCreateTestEndpoint(name, transport);
109111
}
110112
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Azure Storage Queues
2+
3+
The **Azure Storage Queues Transport** is used to communicate to Azure Storage Queues. It is suitable for development, testing, and production environments.
4+
5+
## Configuration
6+
7+
To use the Azure Storage Queues Transport, define it under `transports` and reference it as `current-transport`.
8+
9+
### Example
10+
11+
```yaml
12+
current-transport: local-azure-service-bus
13+
14+
transports:
15+
- name: local-azure-service-bus
16+
azure-storage-queues-transport-config:
17+
connection-string: Endpoint=amqp://127.0.0.1:32799/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true
18+
```
19+
20+
---
21+
22+
## `azure-storage-queues-transport-config` Fields
23+
24+
| Field | Required | Type | Default | Description |
25+
| ------------------- | -------- | ------ | ------- | ------------------------------------------ |
26+
| `connection-string` | **Yes** | string | — | Connection string to Azure Storage Queues. |
27+
28+
---
29+
30+
## Field Details
31+
32+
### `connection-string` (required)
33+
34+
A standard conection string for Azure Storage Queues.
35+
36+
Examples:
37+
38+
```yaml
39+
connection-string: UseDevelopmentStorage=true
40+
```

0 commit comments

Comments
 (0)