public GeographicalCloudIdentityProvider(Uri urlBase, CloudIdentity identity, IRestService restService, ICache <UserAccess> userAccessCache, IHttpResponseCodeValidator responseCodeValidator) { _defaultIdentity = identity; _urlBase = urlBase; _userAccessCache = userAccessCache; _restService = restService; _responseCodeValidator = responseCodeValidator; }
protected ProviderBase(CloudIdentity defaultIdentity, IIdentityProvider identityProvider, IRestService restService, IHttpResponseCodeValidator httpStatusCodeValidator) { if (identityProvider == null) { identityProvider = new CloudIdentityProvider(defaultIdentity); } if (restService == null) { restService = new JsonRestServices(); } if (httpStatusCodeValidator == null) { httpStatusCodeValidator = HttpResponseCodeValidator.Default; } DefaultIdentity = defaultIdentity; IdentityProvider = identityProvider; RestService = restService; ResponseCodeValidator = httpStatusCodeValidator; }