public RemoteObjectGetter(IConfiguration configurations, CurrentUserCredentialsGetter userCredentialsGetter, UserDataManager userDataManager)
        {
            _configurations = configurations;
            var catalog = _configurations["Services:Catalog"];

            _restClient        = new RestClient(catalog);
            _credentialsGetter = userCredentialsGetter;
            _userDataManager   = userDataManager;
        }
Exemplo n.º 2
0
 public UserDataManager(IRepository <Guid, User> userRepo,
                        IRepository <Guid, Login> loginRepo,
                        UserDataGetter userDataGetter,
                        CurrentUserCredentialsGetter credentialsGetter)
 {
     _userRepo          = userRepo;
     _loginRepo         = loginRepo;
     _userDataGetter    = userDataGetter;
     _credentialsGetter = credentialsGetter;
 }
 public OwnershipAuthorization(IRepository <TKey, T> repo, CurrentUserCredentialsGetter credentialsGetter)
 {
     _repo = repo;
     _credentialsGetter = credentialsGetter;
 }