Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        public RestProxy.Builder RestProxy(RestProxy.Config config)
        {
#if MVC
            return(new RestProxy.Builder(new RestProxy(config)
            {
                ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null
            }));
#else
            return(new RestProxy.Builder(new RestProxy(config)));
#endif
        }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 public Builder(RestProxy.Config config) : base(new RestProxy(config))
 {
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 public RestProxy.Builder RestProxy(RestProxy.Config config)
 {
     return(new RestProxy.Builder(new RestProxy(config)));
 }