예제 #1
0
 public T Build()
 {
     try
     {
         return(_proxyBuilder.Build(
                    new XmlRpcProxyInterceptor <T>(
                        new XmlRpcClient(_httpClientFactory.CreateClient())
         {
             Url = _url,
             XmlEncoding = _encoding,
             HttpContentType = _contentType
         },
                        new ApiAnalyzer <T>().Analyze())
                    ));
     }
     finally
     {
         SetDefaultSettings();
     }
 }
예제 #2
0
        public Type BuildProxyType(Type type)
        {
            var proxyType = _proxyBuilder.Build(type);

            return(proxyType);
        }