Click here to Skip to main content
15,868,164 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How can I speed up my code? Pin
Dave Kreskowiak19-Jul-16 12:57
mveDave Kreskowiak19-Jul-16 12:57 
GeneralRe: How can I speed up my code? Pin
turbosupramk320-Jul-16 4:13
turbosupramk320-Jul-16 4:13 
GeneralRe: How can I speed up my code? Pin
Dave Kreskowiak20-Jul-16 5:17
mveDave Kreskowiak20-Jul-16 5:17 
Generalc# please give me a running program for Speechconvert to text Pin
Member 214622319-Jul-16 3:24
Member 214622319-Jul-16 3:24 
GeneralRe: c# please give me a running program for Speechconvert to text Pin
OriginalGriff19-Jul-16 4:07
mveOriginalGriff19-Jul-16 4:07 
QuestionHow can I monitor CPU and monitor utilisation for 1 process and plot in the graph Pin
anujlamba19-Jul-16 2:39
anujlamba19-Jul-16 2:39 
AnswerRe: How can I monitor CPU and monitor utilisation for 1 process and plot in the graph Pin
Richard MacCutchan19-Jul-16 3:11
mveRichard MacCutchan19-Jul-16 3:11 
QuestionSet RequestValidationMode at control level in web config Pin
Member 1264210518-Jul-16 21:22
Member 1264210518-Jul-16 21:22 
AnswerRe: Set RequestValidationMode at control level in web config Pin
Slacker00719-Jul-16 2:09
professionalSlacker00719-Jul-16 2:09 
SuggestionAbout Async Event Pin
Super Lloyd18-Jul-16 14:47
Super Lloyd18-Jul-16 14:47 
GeneralRe: About Async Event Pin
Brisingr Aerowing18-Jul-16 16:16
professionalBrisingr Aerowing18-Jul-16 16:16 
GeneralRe: About Async Event Pin
Super Lloyd18-Jul-16 16:57
Super Lloyd18-Jul-16 16:57 

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.