private object InvokeMethod(object instance, object[] deserializedArguments, IJobCancellationToken cancellationToken) { try { return(Method.Invoke(instance, deserializedArguments)); } catch (TargetInvocationException ex) { CoreBackgroundJobPerformer.HandleJobPerformanceException(ex.InnerException, cancellationToken, null); throw; } }
public void Ctor_DoesNotThrowAnException_WhenTaskSchedulerIsNull() { var performer = new CoreBackgroundJobPerformer(_activator.Object, null); Assert.NotNull(performer); }