如何访问RemoteExecutionContext中已更改和未更改的属性?如何访问RemoteExecutionContext中已更改和未更改的属性?
我已成功获取SDK示例沙盒插件发送创建到Azure服务总线队列。
接下来,我想处理更新消息,但我似乎无法得到所有的属性。
读什么我可以找到,它提到的前和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);
}
,但我怎样才能获得剩余的属性?
为了进一步迷惑了我,我送,我修改其他属性第二个消息,但这些不会出现在任何设置属性
可能缺少的属性只是有'null'值? –
不,他们都有字符串 – SteveC