private RtcClient(Uri uri, BasicAuthentication basicAuthentication = null) { ClientFactory clientFactory; if (basicAuthentication != null) { clientFactory = new ClientFactory(uri, new HttpBasicAuthenticator( basicAuthentication.Username, basicAuthentication.Password)); } else { clientFactory = new ClientFactory(uri, null); } var requestFactory = new RequestFactory(clientFactory); Auth = new AuthApi(requestFactory); Issues = new IssueApi(requestFactory); Projects = new ProjectApi(requestFactory); }