internal void RaiseError(SharedErrorEventArgs args)
 {
     if (Error == null)
     {
         // If the error handler has not been hooked up we will raise an Exception to insure that the developer
         // knows about this pathway for error reporting and has hooked up to it.
         RunOnDispatcher(() =>
         {
             throw args.ToException();
         });
     }
     if (this.Error != null)
     {
         this.Error(this, args);
     }
 }
 internal void RaiseError(SharedErrorEventArgs args)
 {
     if (Error == null)
     {
         // If the error handler has not been hooked up we will raise an Exception to insure that the developer
         // knows about this pathway for error reporting and has hooked up to it.
         RunOnDispatcher(() =>
         {
             throw args.ToException();
         });                
     }
     if (this.Error != null)
     {
         this.Error(this, args);
     }
 }