private void DoManageStage(ICRMEvent context, Guid pluginStepId, mwo_PluginStepRegistration subject) { if (subject.StateCode == mwo_PluginStepRegistrationState.Active) { StepManager.Activate(pluginStepId); Tracer.Trace($"Activated PluginStep: {pluginStepId}"); } else { StepManager.Deactivate(pluginStepId); Tracer.Trace($"Deactivated PluginStep: {pluginStepId}"); } }