Редактиране

Споделяне чрез


Sample: Azure aware custom plug-in

The plug-in demonstrates how to obtain the execution context and the tracing service from the service provider parameter of the Execute method. The plug-in then posts the context to the Azure Service Bus endpoint and writes information to the trace log to facilitate debugging.

How to run this sample

  1. Download or clone the Samples repo so that you have a local copy.
  2. Open the Azureplugin.sln solution file located at PowerApps-Samples\dataverse\orgsvc\C#\Azureplugin with Visual Studio.
  3. Sign the assembly with a key.
  4. Register the plug-in using the Plugin Registration Tool.

Note

This sample requires a service endpoint to be created first, and its ID passed to the plug-in constructor through the unsecure configuration parameter when the plug-in step is registered.

More information:

Write a custom Azure-aware plug-in
Register a plug-in