private void SetPhase(Phase phase) { var phaseType = phase.GetType(); if (_phase == null) { _logger.InfoFormat("Initial phase: {0}", phaseType.Name); } else { var curentPhaseType = _phase.GetType(); if (curentPhaseType != phaseType) { _logger.InfoFormat("Switching phase: {0} -> {1}", curentPhaseType.Name, phaseType.Name); } } _phase = phase; }
private void SetPhase(Phase phase) { var phaseType = phase.GetType(); if (_phase == null) { _logger.InfoFormat("Initial phase: {0}", phaseType.Name); } else { var curentPhaseType = _phase.GetType(); if (curentPhaseType != phaseType) _logger.InfoFormat("Switching phase: {0} -> {1}", curentPhaseType.Name, phaseType.Name); } _phase = phase; }