示例#1
0
 public TokenManager(IStableDataStorage dataStorage)
 {
     _dataStorage = dataStorage;
     _tokenDict   = JsonConvert.DeserializeObject <Dictionary <Uri, AccessToken> >(_dataStorage.ReadToken());
 }
示例#2
0
 public VcapCredentialManager(Uri targetUri, IStableDataStorage stableDataStorage)
 {
     _currentTarget = targetUri;
     _tokenManager  = new TokenManager(stableDataStorage);
 }
示例#3
0
 public VcapClient(string targetUrl, IStableDataStorage stableDataStorage)
     : this(stableDataStorage)
 {
     Target(targetUrl);
 }
示例#4
0
 public VcapClient(Uri targetUri, IStableDataStorage stableDataStorage)
     : this(stableDataStorage)
 {
     InitializationCredentialManager(targetUri);
 }
示例#5
0
 private VcapClient(IStableDataStorage stableDataStorage)
 {
     _stableDataStorage = stableDataStorage;
 }
示例#6
0
 public ApplicationProvider(VcapCredentialManager credentialManager, IStableDataStorage stableDataStorage)
     : this(credentialManager)
 {
     StableDataStorage = stableDataStorage;
 }