Beispiel #1
0
 async Task EnsureLoggedIn(ILocalRepositoryModel repository)
 {
     if (!hosts.IsLoggedInToAnyHost && !string.IsNullOrWhiteSpace(repository?.CloneUrl))
     {
         var hostAddress = HostAddress.Create(repository.CloneUrl);
         await hosts.LogInFromCache(hostAddress);
     }
 }
Beispiel #2
0
 async Task EnsureLoggedIn(ILocalRepositoryModel repository)
 {
     if (!hosts.IsLoggedInToAnyHost && repository != null)
     {
         var hostAddress = HostAddress.Create(repository.CloneUrl);
         await hosts.LogInFromCache(hostAddress);
     }
 }