Is it possible to spawn a thread within a Sharepoint portal?
If so how?
Currently my code looks like this... Pretty basic... I've even tried passing credentials to the method that the thread. If anyone out there has done this I would greatly appreciate your insight. Thanks in advance...
private void CallingMethod()
{
ThreadStart tStart = new ThreadStart(ThreadExportData);
Thread thread = new Thread(tStart);
thread.Priority = ThreadPriority.BelowNormal;
thread.CurrentCulture = Thread.CurrentThread.CurrentCulture;
thread.Start();
}
private void ThreadExportData()
{
WindowsIdentity id = WindowsIdentity.GetCurrent();
id.Impersonate();
//Do work here..
}
RickPosted Aug 8, 2006, 4:18 PM