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

            action();

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

            action();

            if (after != null)
                after(context);
        }