如何访问RemoteExecutionContext中已更改和未更改的属性?
我已经成功地获得了SDK示例沙箱插件,将Create发送到Azure Service总线队列。
接下来,我想处理更新消息,但是我似乎不能获得所有的属性。
阅读我所能找到的,它提到了预-和PostImage,我可以看到一些属性.
// context is the passed in RemoteExecutionContext
var postEntityImage = context.PostEntityImages["AsynchronousStepPrimaryName"];
foreach (var attribute in postEntityImage.Attributes)
{
Console.WriteLine("{0} {1}", attribute.Key, attribute.Value);
}
var inputParametersEntity = (Entity) context.InputParameters["Target"];
foreach (var attribute in inputParametersEntity.Attributes)
{
Console.WriteLine("{0} {1}", attribute.Key, attribute.Value);
}但是我如何才能获得剩余的属性呢?
更让我困惑的是,我发送了第二条消息,其中我修改了其他属性,但是这些属性没有出现在这两组属性中
发布于 2015-12-12 03:46:38
插件中的目标将只包含要更新的值。如果要确保属性始终存在,则需要将其添加为实体映像。预实体将包含事务发生前的值,post实体将包含更新发生后的值。
右键单击插件注册工具中的步骤,并选择“添加图像”。
https://stackoverflow.com/questions/34229479
复制相似问题