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