RestCode / WebApiProxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow overriding configuration class

maeserichar opened this issue · comments

Right now, the configuration class generated by the T4 template sets a hardcoded value to the BaseAddress.

I would be very convenient if you can configure this to get the BaseAddress from another place (i.e. config file or something like that), as this would give us the hability to distribute the API client as a library and let the users of the library set the real address (i.e. for different environments).

If you are interested in such change, I can try to put a pull request.

the constructor for the generated API Service has a 'baseuri' in the constructor, so you can pass whatever you want

Ok, It could works for us. Thanks!