private void RaiseException(Exception ex) { Task.Run(() => { var ev = OnException; ev?.Invoke(this, ex); }); } }