public void RaisePerform()
{
Running = true;
try
{
ErrorUtil.ThrowOnFailure(Handler.Perform(this));
Success = true;
}
catch (Exception ex)
{
_syncContext.Send(
p => _jobManager.CreateTaskDialog()
.FromException(ex)
.Show(),
null
);
Exception = ex;
}
finally
{
Running = false;
Completed = true;
}
}