{"action":"closed","issue":{"url":"https://api.github.com/repos/paulcbetts/refit/issues/266","repository_url":"https://api.github.com/repos/paulcbetts/refit","labels_url":"https://api.github.com/repos/paulcbetts/refit/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/paulcbetts/refit/issues/266/comments","events_url":"https://api.github.com/repos/paulcbetts/refit/issues/266/events","html_url":"https://github.com/paulcbetts/refit/issues/266","id":178733641,"number":266,"title":"How to  switch host URL at runtime?","user":{"login":"opcodewriter","id":15019084,"avatar_url":"https://avatars.githubusercontent.com/u/15019084?v=3","gravatar_id":"","url":"https://api.github.com/users/opcodewriter","html_url":"https://github.com/opcodewriter","followers_url":"https://api.github.com/users/opcodewriter/followers","following_url":"https://api.github.com/users/opcodewriter/following{/other_user}","gists_url":"https://api.github.com/users/opcodewriter/gists{/gist_id}","starred_url":"https://api.github.com/users/opcodewriter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opcodewriter/subscriptions","organizations_url":"https://api.github.com/users/opcodewriter/orgs","repos_url":"https://api.github.com/users/opcodewriter/repos","events_url":"https://api.github.com/users/opcodewriter/events{/privacy}","received_events_url":"https://api.github.com/users/opcodewriter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-22T22:09:54Z","updated_at":"2016-09-24T11:30:41Z","closed_at":"2016-09-24T11:30:41Z","body":"How to change the host URL at runtime?\r\nThe only option I see is basically recreate the API service instance:\r\n\r\n`RestService.For<IMyApi>()`\r\n\r\nThe issue with this this is supposed to be an dependency injected singleton.... \r\nThere might be instances of which already have the IMyApi instance...\r\n "}}
{"actor":{"display_login":"opcodewriter"}}