Beispiel #1
0
 public void FlushMethod(Logger logger)
 {
     if (this.IsSupported())
     {
         logger.Output("{0} component is supported", this.Name);
         var count = this.Methods.Length;
         for (var index = 0; index < count; ++index)
         {
             var name = this.Methods[index];
             var position = name.IndexOf('@');
             name = name.Substring(0, position);
             if (this.IsSupported((ushort)index))
             {
                 logger.Output("\t{0} method is supported", name);
             }
             else
             {
                 logger.Output("\t{0} method is not supported", name);
             }
         }
     }
     else
     {
         logger.Output("{0} component is not supported", this.Name);
     }
 }
Beispiel #2
0
 internal void FlushTranlators(Logger logger)
 {
     logger.Output("Flushing of translators");
     foreach (var element in this.translators)
     {
         element.FlushMethod(logger);
     }
     logger.Output("Translators have been flushed");
 }