ITwoWayServiceEndpointPlugin.Execute(RemoteExecutionContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes plug-in code in response to an event.
public:
System::String ^ Execute(Microsoft::Xrm::Sdk::RemoteExecutionContext ^ executionContext);
[System.ServiceModel.FaultContract(typeof(Microsoft.Xrm.Sdk.ServiceEndpointFault))]
[System.ServiceModel.OperationContract]
public string Execute (Microsoft.Xrm.Sdk.RemoteExecutionContext executionContext);
[<System.ServiceModel.FaultContract(typeof(Microsoft.Xrm.Sdk.ServiceEndpointFault))>]
[<System.ServiceModel.OperationContract>]
abstract member Execute : Microsoft.Xrm.Sdk.RemoteExecutionContext -> string
Public Function Execute (executionContext As RemoteExecutionContext) As String
Parameters
- executionContext
- RemoteExecutionContext
Defines the contextual information passed to a plug-in at run-time.
Returns
The response from the request.
- Attributes
Remarks
The return value is sent back to Microsoft Dynamics 365 over the service bus and received by the plug-in that initiated the original service bus post.
The execution context is posted on the Microsoft Azure Service Bus by Microsoft Dynamics 365 and made available to the listener in the execution context parameter.