This is a sample code which can be used to test the hybrid inetegration between the On Premises BizTalk Server 2016 and Azure Event Hubs and Logic apps. The detailed article which utilizes this sample code can be found on technet wiki at  

https://social.technet.microsoft.com/wiki/contents/articles/50895.biztalk-server-hybrid-integration-using-biztalk-2016-event-hubs-adapter-and-azure-logic-apps/edit.aspx