This repository provides a few examples of customizing the
Dovetail.SDK.Properties library to extend functionality in Dovetail Rule Manager and Dovetail Agent.
This extension adds the
Dovetail.Commons.DovetailExtensionAttributeto the assembly. This attribute is required in order for
Dovetail.SDK.Propertiesto include it as an extension.
The property evaluation provides multiple hooks for processing
Tokens once they've been parsed. Property functions leverage this hook by providing a mechanism for exposing C# classes as property tokens. This is facilitated through the
IPropertyFunction interface. This interface defines a method that for executing any custom code and accepts two arguments:
TemplateContext- This provides context for the object type as well as the object identifier. It also provides a mechanism for passing data through the evaluation process. Rule Manager uses this mechanism to pass around the underlying
IServiceLocator- The property function is instantiated and cached in memory. This service is provided for you to request services from the underlying StructureMap container.