/// <summary> /// handle environment deleted /// </summary> /// <param name="message"></param> public void Handle(EnvironmentDeletedMessage message) { IEnvironmentModel sourceEnvironmentModel = Source.Environment; IEnvironmentModel targetEnvironmentModel = Target.Environment; if (Source != null && sourceEnvironmentModel != null) { if (sourceEnvironmentModel.ID == message.EnvironmentModel.ID) { Source.Environment = null; } } if (Target != null && targetEnvironmentModel != null) { if (targetEnvironmentModel.ID == message.EnvironmentModel.ID) { Target.Environment = null; } } }
public void Handle(EnvironmentDeletedMessage message) { Dev2Logger.Log.Info(message.GetType().Name); RemoveEnvironment(message.EnvironmentModel); }