문제

I have an issue with checking the signature of an XML file using .NET 3.5. It all works fine, but randomly the performance is poor. Sometimes it's instant and yet at other times it can take maybe 10 or 15 seconds to return.

I've checked the machine and nothing is going on to affect it's overall performance, and it's the same on different machines as well, so I don't think it's related to one machine.

I've narrowed it down precisely to the .CheckSignature() method, so once it hits that it's anybody's guess when it'll come back.

Anyone have any thoughts or advice?

도움이 되었습니까?

해결책

Looking back at old unanswered questions I thought I'd post an update to this that might prove useful to somebody.

Whilst I didn't find an answer to the performance issue, what I did was kick off the validation of the signature in a separate thread which allowed me to display a dialog box with a progress bar on it showing the user that something was happening, rather than the app seemingly hanging.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top