public override ValueTask <IActionResult> Execute( IActionResultTypeMapper mapper, TestSkillionObjectMethodExecutor executor, object controller, object[] arguments) { var returnValue = executor.Execute(controller, arguments); var actionResult = ConvertToActionResult(mapper, returnValue, executor.MethodReturnType); return(new ValueTask <IActionResult>(actionResult)); }
public static TestSkillionActionMethodExecutor GetExecutor(TestSkillionObjectMethodExecutor executor) { var testSkillionActionResultExecutor = new TestSkillionActionResultExecutor(); if (testSkillionActionResultExecutor.CanExecute(executor)) { return(testSkillionActionResultExecutor); } Debug.Fail("Should not get here"); throw new Exception(); }
protected override bool CanExecute(TestSkillionObjectMethodExecutor executor) => !executor.IsMethodAsync;
protected abstract bool CanExecute(TestSkillionObjectMethodExecutor executor);
public abstract ValueTask <IActionResult> Execute( IActionResultTypeMapper mapper, TestSkillionObjectMethodExecutor executor, object controller, object[] arguments);