public override IEnumerable<IContextVariable> GetContextVariables()
{
if (SourceProperty == null) {
return base.GetContextVariables();
}
var source = SourceProperty.Source;
if (source == null)
{
return base.GetContextVariables();
}
return base.GetContextVariables().Concat(new[]
{
new ContextVariable("OldValue")
{
Node = this,
VariableType = source.MemberType,
Source = source,
Repository = Repository
},
new ContextVariable("NewValue")
{
Node = this,
VariableType = source.MemberType,
Source = source,
Repository = Repository
},
});
}
public override void AddProperties(TemplateContext<HandlerNode> ctx)