I use the following when writing a plug-in:
public blah() : base(typeof(blah))
{
base.RegisteredEvents.Add(new Tuple<PipelinePhase, Message, string, Action<LocalPluginContext>>(20, "Update", "account", SomeMethod));
}
protected SomeMethod(LocalPluginContext localContext)
{
// logic
}
I've also saw other people use an Execute method like so:
public void Execute(IServiceProvider serviceProvider)
{
// logic
}
What the advantages or disadvantages of each one? Does it matter?