Created
August 14, 2015 12:52
-
-
Save keithelder/3b709fb5e1466a155d91 to your computer and use it in GitHub Desktop.
Rock Framework Directory Services Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var repo = new ActiveDirectoryRepository<TeamMember>(); | |
var user = repo.GetByUserName(Environment.UserName); | |
Console.WriteLine(user.Email); | |
public class TeamMember | |
{ | |
[ADProperty.FirstName] | |
public string FirstName { get; set; } | |
[ADProperty.LastName] | |
public string LastName { get; set; } | |
[ADProperty.Email] | |
public string Email { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment