码迷,mamicode.com
首页 > 其他好文 > 详细

Configure Dynamics 365 and Azure Service Bus Integration (using TwoWay relay, Azure Aware Plugin and listener)

时间:2017-04-03 14:39:31      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:end   conf   create   new   cat   design   window   res   targe   

Let us pick up from where we left in the previous post and implement two way relaying through which we can get the response back from the listener.

https://nishantrana.me/2017/03/22/configure-dynamics-365-and-azure-service-bus-integration-using-oneway-relay-and-listener/

First let us update the Service Endpoint Registration, change the designation type to TwoWay, it would also ask to enter the SAS Key. Copy it from Azure and paste it.

技术分享

技术分享

Update the listener windows application created in the previous post to implement ITwoWayServiceEndpointPlugin

技术分享

Use the below code to create the custom azure aware plugin.

技术分享

Get the service endpoint id from the Properties window of the Service End Point registered.

技术分享

Register the assembly and add the Post Create Synchronous Lead Step to it.

技术分享

As we are using trace service to log the response, set All for Enable logging to plugin-trace log option from Administration – System Setting – Customization.

技术分享

Start the listener windows application and to trigger the plugin, create the lead record

技术分享

We can see the execute method being called from Azure Service bus on create of Lead record.

技术分享

技术分享

The message being returned from listener application to the plugin.

技术分享

The newly created lead record.

技术分享

The trace message within the plugin –

技术分享

Plugin Trace log with the response received from the listener –

技术分享

Hope it helps..

Configure Dynamics 365 and Azure Service Bus Integration (using TwoWay relay, Azure Aware Plugin and listener)

标签:end   conf   create   new   cat   design   window   res   targe   

原文地址:http://www.cnblogs.com/tcli/p/6661853.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!