public HttpCredentialsProvider(string postApiUrl, IBlogCredentialsAccessor blogCredentials, string username, string password) { _postApiUrl = postApiUrl; _blogCredentials = blogCredentials; string baseUrl = UrlHelper.GetBaseUrl(_postApiUrl); if ((username != null && username != String.Empty) || (password != null && password != String.Empty)) { _credentials = HttpRequestHelper.CreateHttpCredentials(username, password, baseUrl); } }