private void FireMediaRenderingException(RenderingExceptionEventArgs args)
 {
     if (MediaRenderingException != null)
     {
         MediaRenderingException(args);
     }
 }
示例#2
0
        void OnMediaRenderingException(RenderingExceptionEventArgs args)
        {
            string msg = args.RenderingException.ToString();

            ErrorDispatcher.DispatchError(msg, false);
            args.Handled = true;
        }
        void ReportRenderingException(Exception ex)
        {
            _hasRenderingErrors = true;

            try
            {
                RenderingException rex = RenderingException.FromException(ex);
                rex.RenderedFile = this.GetRenderFile();

                RenderingExceptionEventArgs args = new RenderingExceptionEventArgs(rex);
                FireMediaRenderingException(args);

                if (args.Handled)
                {
                    return;
                }
            }
            catch
            {
            }

            throw ex;
        }