At times, we may need to find whether the current plugin step is executing synchronous or asynchronous via code.
We can use the property called mode in IPluginExecutionContext to identify the same.
Code snippet:
We can use the property called mode in IPluginExecutionContext to identify the same.
Code snippet:
IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
if(context.Mode == SdkMessageProcessingStepMode.Asynchronous)
No comments:
Post a Comment