Building near real-time integration with Azure Service Bus
In the previous recipe, we mainly used configuration to connect Dynamics 365 to an Azure Service Bus. If you want to implement a custom plugin code before communicating with the Service Bus, or if you want to send something other than the plugin context, you can create your own Azure aware plugin.
In this recipe, we will augment an existing custom plugin's capabilities to also connect to an Azure Service Bus. We will reuse the plugin built in Creating your first plugin recipe of Chapter 4, Server-Side Extensions, as the basis of our work.
Getting ready
Using NuGet in Visual Studio, you will need to retrieve the usual Dynamics 365 assemblies. Alternatively, you can try to source the DLL manually from the SDK. Refer to the Creating your first plugin recipe in Chapter 4, Server-Side Extensions for details.
Your plugin requires a register service endpoint in your Dynamics 365 instance. We can reuse the endpoint created in the previous recipe...