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