Provide url inspector / manipulator API

Allows generated urls to be inspected and/or manipulated prior to being used; internally, this is to allow non-default domains to be used to avoid traversing multiple networks
K; will look later - ta
On 29 Jul 2014 19:20, "Emmett Nicholas" <notifications@github.com> wrote:

> In StacMan/Codegen/StacManClient.AccessTokenMethods.cs:
>
> > @@ -36,12 +36,21 @@ Task<StacManResponse<AccessToken>> IAccessTokenMethods.Invalidate(IEnumerable<st
> >              return CreateApiTask<AccessToken>(ub, HttpMethod.GET, "/access-tokens/{accessTokens}/invalidate");
> >          }
> >
> > +        /// <summary>
> > +        /// Provide a custom url inspector and manipulator to be applied to all requests
> > +        /// </summary>
> > +        public void SetUrlManager(Func<string,string> urlManager)
> > +        {
> > +            this.urlManager = urlManager;
> > +        }
> > +        private Func<string,string> urlManager;
> > +
>
> I think you should be able to add that line directly to StacManClient.cs
> instead, rather than one of the codegen'd partial StacManClient class
> files.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/emmettnicholas/StacMan/pull/7/files#r15541903>.
>