private static void WithEvents(ProvisioningServiceEventHandler before, ProvisioningServiceEventHandler after, ProvisionServiceContext context, Action action) { if (before != null) { before(context); } action(); if (after != null) { after(context); } }
private static void WithEvents(ProvisioningServiceEventHandler before, ProvisioningServiceEventHandler after, ProvisionServiceContext context, Action action) { if (before != null) before(context); action(); if (after != null) after(context); }