Beispiel #1
0
 public override IIdentity GetIdentity(string username)
 {
     return(_bridge.Wrap <WrapperForIdentity, Identity>(Retry.Do(() => GroupSecurityService.ReadIdentity(SearchFactor.AccountName, username, QueryMembership.None))));
 }
Beispiel #2
0
 protected override bool HasWorkItems(Changeset changeset)
 {
     return(Retry.Do(() => changeset.AssociatedWorkItems.Length > 0));
 }
Beispiel #3
0
 private void DoUntilNoFailures(Func <GetStatus> get)
 {
     Retry.DoWhile(() => get().NumFailures != 0);
 }
Beispiel #4
0
 public void GetSpecificVersion(int changeset)
 {
     Retry.Do(() => DoUntilNoFailures(() => _workspace.Get(new ChangesetVersionSpec(changeset), GetOptions.Overwrite | GetOptions.GetAll)));
 }
 public override IIdentity GetIdentity(string username)
 {
     return(_bridge.Wrap <WrapperForIdentity, TeamFoundationIdentity>(Retry.Do(() => GroupSecurityService.ReadIdentity(IdentitySearchFactor.AccountName, username, MembershipQuery.None, ReadIdentityOptions.None))));
 }