-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure Service Bus interop. Closes GH-429
- Loading branch information
1 parent
09b55a8
commit b1ce9c5
Showing
9 changed files
with
128 additions
and
6 deletions.
There are no files selected for viewing
12 changes: 9 additions & 3 deletions
12
docs/guide/messaging/transports/azureservicebus/interoperability.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
# Interoperability | ||
|
||
Wolverine does not yet have the API mechanisms to enable interoperability with non-Wolverine systems, but don't fret, | ||
that is planned! | ||
Hey, it's a complicated world and Wolverine is a relative newcomer, so it's somewhat likely you'll find yourself needing to make a Wolverine application talk via Azure Service Bus to | ||
a non-Wolverine application. Not to worry (too much), Wolverine has you covered with the ability to customize Wolverine to Azure Service Bus mapping. | ||
|
||
You can follow the [backlog item for that potential work here](https://github.com/JasperFx/wolverine/issues/399). | ||
You can create interoperability with non-Wolverine applications by writing a custom `IAzureServiceBusEnvelopeMapper` | ||
as shown in the following sample: | ||
|
||
snippet: sample_custom_azure_service_bus_mapper | ||
|
||
To apply that mapper to specific endpoints, use this syntax on any type of Azure Service Bus endpoint: | ||
|
||
snippet: sample_configuring_custom_envelope_mapper_for_azure_service_bus~~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Transports/Azure/Wolverine.AzureServiceBus/IAzureServiceBusEnvelopeMapper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Azure.Messaging.ServiceBus; | ||
using Wolverine.Transports; | ||
|
||
namespace Wolverine.AzureServiceBus; | ||
|
||
public interface IAzureServiceBusEnvelopeMapper : IEnvelopeMapper<ServiceBusReceivedMessage, ServiceBusMessage> | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters