public AsyncHandlerInvocationResult InvokeHandler(IAsyncRequest request, IApplicationState state) { if (request is THandlerRequest typedRequest) { var result = _handler.HandleAsync(typedRequest, state); return(new AsyncHandlerInvocationResult(result)); } return(default);