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