public async Task <object> ResolveRequestAsync <T>(T target, ITypeSafeRequest request) where T : class { if (!(request is ReflectionRequest reflectionRequest)) { throw new ArgumentException( $"Expected type {typeof(ReflectionRequest)}. Given request was {request.GetType()}"); } return(await CallAsync(target, reflectionRequest)); }
public TypeSafeRequestWrapper(ITypeSafeRequest request) { Request = request; }