public void DeleteLoggerOutput(Outputter output) { if (CheckOutput(output) == true) { instanceMap.Remove(output.GetOutputType()); } }
public void SetLoggerOutput(Outputter output) { if (CheckOutput(output) == false) { instanceMap.Add(output.GetOutputType(), output.GetInstance()); } }
private bool CheckOutput(Outputter check) { foreach (Outputter output in instanceMap.Values) { if (check.GetOutputType() == output.GetOutputType()) { return(true); } } return(false); }