public static IIdentityManagementService GetIdentityManagementService([NotNull] this ITeamProjectCollection teamProjectCollection) { Contract.Requires(teamProjectCollection != null); if (teamProjectCollection == null) { throw new ArgumentNullException(nameof(teamProjectCollection)); } return(((IInternalTeamProjectCollection)teamProjectCollection).GetService <IIdentityManagementService2>().AsProxy()); }
public AuthenticationSuccessNotification(VssCredentials credentials, ITeamProjectCollection teamProjectCollection) : base(credentials) { TeamProjectCollection = teamProjectCollection; }