I Have a plugin that should run on delete of a custom entity that wont run.
Plugin is registered with Plugin Registrtion Tool setting:
with an image called Target registerd as a pre-image.
there are no errors logged on the server and debuging in visual studio with a breakpoint on the first statements in the constructor and execute methods does not result in it entering debug.
any idea what i have done wrong?
Figured it out, i had this line
if (context.InputParameters.Properties.Contains(ParameterName.EntityMoniker) &&
context.InputParameters.Properties[ParameterName.EntityMoniker] is Moniker)
which is how it works for MessageName.SetStateDynamicEntity, changed to
if (context.InputParameters.Properties.Contains(ParameterName.Target) &&
context.InputParameters.Properties[ParameterName.Target] is Moniker)
and it works now.