How do I convert this to be devforce 2012 compliant:
public static INotifyCompleted RunForSP<T>(this StoredProcQuery query, Action<IEnumerable<T>> onSuccess, Action<Exception> onFail)
{
return query.ExecuteAsync(op => // OnCompletion(op, onSuccess, onFail));
{
if (op.CompletedSuccessfully)
{
if (null != onSuccess)
onSuccess(op.Results.Cast<T>());
}
else
{
if (null != onFail)
{
op.MarkErrorAsHandled();
onFail(op.Error);
}
}
});
}
INotifyCompleted not supported in 2012 devforce version.