Saturday, August 14, 2010

How to create single threaded apartment thread (STA) inside asp.net page execution

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    Thread t = new Thread(SigleThreadedExecution);
    t.SetApartmentState(ApartmentState.MTA);
    t.Start();
}
private void SigleThreadedExecution()
{
 
}

No comments:

Azure Storage Account Types

Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...