Sunday, February 19, 2012

In what order are these methods on the PipelineComponent class called

I am interested in what order these three methods are called because they are all needed early in the component's life.

RegisterEvents
RegisterLogEntries
ProvideComponentProperties

I would guess ProvideComponentProperties, RegisterEvents,RegisterLogEntries
Thanks

Allan

Hi Allan,

Since they are unrelated it really should not matter. However, so you know, the order is RegisterEvents, RegisterLogEntries, and then sometime later ProvideComponentProperties. However, this only is true the first time a component is added to the design surface. Afterwards you will still get RegisterEvents and RegisterLogEntries but you will not get PCP. Also, if you create a component programatically then it is your responsibility to call PCP, whereas the other 2 will be called regardless.

Thanks,|||Matt

I'm not sure that I would say they are unrelated as they all provide details AFAIK about your component in some way

RegisterEvents - Add a custom event to the pipeline
RegisterLogEntries - Show the user any custom pipeline events in the log (if any) for the package
ProvideComponentProperties - Describe and setup the component.

Thanks for the order info

No comments:

Post a Comment