Ejemplo n.º 1
0
 public GeographicalCloudIdentityProvider(Uri urlBase, CloudIdentity identity, IRestService restService, ICache <UserAccess> userAccessCache, IHttpResponseCodeValidator responseCodeValidator)
 {
     _defaultIdentity       = identity;
     _urlBase               = urlBase;
     _userAccessCache       = userAccessCache;
     _restService           = restService;
     _responseCodeValidator = responseCodeValidator;
 }
Ejemplo n.º 2
0
        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;
        }