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));
        }
Пример #2
0
 public TypeSafeRequestWrapper(ITypeSafeRequest request)
 {
     Request = request;
 }