Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inheritance Pin
sunsher27-Jul-16 12:48
sunsher27-Jul-16 12:48 
GeneralRe: Inheritance Pin
OriginalGriff27-Jul-16 19:20
mveOriginalGriff27-Jul-16 19:20 
Questionhow i can use Kinect to record skeleton tracking Pin
Member 1252528120-Jul-16 4:12
Member 1252528120-Jul-16 4:12 
AnswerRe: how i can use Kinect to record skeleton tracking Pin
Dave Kreskowiak20-Jul-16 8:14
mveDave Kreskowiak20-Jul-16 8:14 
QuestionInconsistent synchronization Pin
Bernhard Hiller19-Jul-16 22:29
Bernhard Hiller19-Jul-16 22:29 
AnswerRe: Inconsistent synchronization Pin
User 1106097919-Jul-16 23:31
User 1106097919-Jul-16 23:31 
GeneralRe: Inconsistent synchronization Pin
Bernhard Hiller19-Jul-16 23:59
Bernhard Hiller19-Jul-16 23:59 
GeneralRe: Inconsistent synchronization Pin
User 1106097920-Jul-16 0:02
User 1106097920-Jul-16 0:02 
GeneralRe: Inconsistent synchronization Pin
Bernhard Hiller20-Jul-16 0:18
Bernhard Hiller20-Jul-16 0:18 
GeneralRe: Inconsistent synchronization Pin
User 1106097920-Jul-16 0:25
User 1106097920-Jul-16 0:25 
GeneralRe: Inconsistent synchronization Pin
User 1106097920-Jul-16 9:22
User 1106097920-Jul-16 9:22 
AnswerRe: Inconsistent synchronization Pin
Pete O'Hanlon20-Jul-16 0:38
mvePete O'Hanlon20-Jul-16 0:38 
QuestionRe: Inconsistent synchronization Pin
User 1106097926-Jul-16 19:59
User 1106097926-Jul-16 19:59 
AnswerRe: Inconsistent synchronization Pin
Bernhard Hiller26-Jul-16 21:32
Bernhard Hiller26-Jul-16 21:32 
GeneralRe: Inconsistent synchronization Pin
User 1106097926-Jul-16 21:42
User 1106097926-Jul-16 21:42 
GeneralRe: Inconsistent synchronization Pin
Bernhard Hiller26-Jul-16 21:53
Bernhard Hiller26-Jul-16 21:53 
PraiseRe: Inconsistent synchronization Pin
User 1106097926-Jul-16 22:17
User 1106097926-Jul-16 22:17 
QuestionFingerprint reader SDK C # MVC + Pin
MCanizalez19-Jul-16 14:04
professionalMCanizalez19-Jul-16 14:04 
AnswerRe: Fingerprint reader SDK C # MVC + Pin
Dave Kreskowiak19-Jul-16 15:30
mveDave Kreskowiak19-Jul-16 15:30 
QuestionHow can I speed up my code? Pin
turbosupramk319-Jul-16 4:18
turbosupramk319-Jul-16 4:18 
I am running this from one domain and against a different domain. The process is incredibly slow and I'm wondering how I can speed my code up so that instead of it taking 20 minutes, it will only take 1 minute.

I have noticed that every once in a while it will only take 1 minute and I'm wondering if I need to point it to a specific DC in the domain I am looking through or maybe something else?


getAllGroupMemberGroupsForGroup("membergroup", "domain.domain.com")

private List<string> getAllGroupMemberGroupsForGroup(string groupName, string domainName)
{

PrincipalContext context = new PrincipalContext(ContextType.Domain, domainName);
GroupPrincipal objects = GroupPrincipal.FindByIdentity(context, groupName);
List<string> groupMembersList = new List<string>();
PrincipalSearchResult<principal> objectMembers = null;
if (objects != null)
{
objectMembers = objects.GetMembers();
}
else
{

return groupMembersList;
}

foreach (Principal objectMember in objectMembers)
{
if (objectMember.StructuralObjectClass == "group")
{
string objectDomain = objectMember.Context.Name;
groupMembersList.Add(objectMember.Name + "|" + objectDomain + "|" + objectMember.DistinguishedName);
}
}

return groupMembersList;

}
AnswerRe: How can I speed up my code? Pin
Marc Clifton19-Jul-16 6:39
mvaMarc Clifton19-Jul-16 6:39 
AnswerRe: How can I speed up my code? Pin
Dave Kreskowiak19-Jul-16 9:26
mveDave Kreskowiak19-Jul-16 9:26 
GeneralRe: How can I speed up my code? Pin
turbosupramk319-Jul-16 9:36
turbosupramk319-Jul-16 9:36 
GeneralRe: How can I speed up my code? Pin
Dave Kreskowiak19-Jul-16 10:26
mveDave Kreskowiak19-Jul-16 10:26 
GeneralRe: How can I speed up my code? Pin
turbosupramk319-Jul-16 10:35
turbosupramk319-Jul-16 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.