示例#1
0
 private void OnSkinPreRender(object sender, SkinEventArgs e)
 {
     IocUtil.GetInstanceContracts <ISkinEvents>().ForEach(instance =>
     {
         try
         {
             instance.PreRender(e);
         }
         catch (Exception ex)
         {
             Logger.ErrorFormat("{0}.PreRender threw an exception.  {1}\r\n{2}",
                                instance.GetType().FullName, ex.Message, ex.StackTrace);
         }
     });
 }