I derived some custom types from CustomTrackingRecord (e.g. MyCustomStateRecord) to expose additional properties to allow easier and type-safe access to the "Data" dictionary in the CustomTrackingRecord class. This derived CustomTrackingRecords
are created inside of CodeActvities I developed to store additional runtime information.
I can use this derived CustomTrackingRecords without a problem in my custom TrackingParticipant inside of a workflow application. But if I try to track this derived CustomTrackingRecords in a Workflow Service the custom type is not available. Instead the
derived CustomTrackingRecords are casted to regular CustomTrackingRecords by the workflow service before passed to the Track() method in the tracking participant.
Is there a way to keep the original type of the tracking records or is it intended that derived types from CustomTrackingRecord are casted to the parent class CustomTrackingRecord?
View Complete Post