Click here to Skip to main content
15,888,277 members
Home / Discussions / C#
   

C#

 
GeneralRe: messeging Pin
Heath Stewart17-May-04 4:04
protectorHeath Stewart17-May-04 4:04 
GeneralRuntime Polymorphism Pin
sreejith ss nair16-May-04 20:43
sreejith ss nair16-May-04 20:43 
GeneralRe: Runtime Polymorphism Pin
Dave Kreskowiak17-May-04 0:52
mveDave Kreskowiak17-May-04 0:52 
GeneralRe: Runtime Polymorphism Pin
sreejith ss nair17-May-04 1:41
sreejith ss nair17-May-04 1:41 
GeneralRe: Runtime Polymorphism Pin
Dave Kreskowiak17-May-04 3:28
mveDave Kreskowiak17-May-04 3:28 
GeneralASP.NET and threads Pin
devvvy16-May-04 18:09
devvvy16-May-04 18:09 
GeneralRe: ASP.NET and threads Pin
TigerNinja_16-May-04 18:29
TigerNinja_16-May-04 18:29 
GeneralMore questions... Pin
devvvy16-May-04 22:02
devvvy16-May-04 22:02 
Hi, I have a question about an article I'm reading now: http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx

In figure 5:

public IAsyncResult BeginProcessRequest(HttpContext ctx,
AsyncCallback cb,
object obj)
{
AsyncRequestState reqState =
new AsyncRequestState(ctx, cb, obj);
AsyncRequest ar = new AsyncRequest(reqState);
ThreadStart ts = new ThreadStart(ar.ProcessRequest);
Thread t = new Thread(ts);
t.Start();

return reqState;
}

As far as my understanding goes, every new request is serviced by a HttpApplication derived instance. And it's this HttpApplication derived instance that will call BeginProcessRequest, so how can we specify a callback "cb" and additional arguments encapsulated by "obj".

Thanks!

Norman Fung
GeneralEmbed application Pin
The_Soul_Of_Rock16-May-04 17:58
The_Soul_Of_Rock16-May-04 17:58 
GeneralRe: Embed application Pin
TigerNinja_16-May-04 18:31
TigerNinja_16-May-04 18:31 
GeneralPost Data from DataList LinkButton Pin
Nickiler16-May-04 16:09
Nickiler16-May-04 16:09 
GeneralRe: Post Data from DataList LinkButton Pin
TigerNinja_16-May-04 18:18
TigerNinja_16-May-04 18:18 
GeneralRe: Post Data from DataList LinkButton Pin
Nickiler16-May-04 21:09
Nickiler16-May-04 21:09 
GeneralRe: Post Data from DataList LinkButton Pin
Heath Stewart17-May-04 4:09
protectorHeath Stewart17-May-04 4:09 
GeneralRe: Post Data from DataList LinkButton Pin
Nickiler17-May-04 6:20
Nickiler17-May-04 6:20 
GeneralDataTable searchs Pin
Moon Boy16-May-04 15:26
Moon Boy16-May-04 15:26 
GeneralRe: DataTable searchs Pin
TigerNinja_16-May-04 18:11
TigerNinja_16-May-04 18:11 
GeneralRe: DataTable searchs Pin
Heath Stewart17-May-04 4:10
protectorHeath Stewart17-May-04 4:10 
GeneralInformation about Excel 9.0 Obj.Library Pin
Rostrox16-May-04 11:33
Rostrox16-May-04 11:33 
GeneralRe: Information about Excel 9.0 Obj.Library Pin
Heath Stewart16-May-04 11:41
protectorHeath Stewart16-May-04 11:41 
GeneralEncrypt numbers Pin
Anonymous16-May-04 9:58
Anonymous16-May-04 9:58 
GeneralRe: Encrypt numbers Pin
Heath Stewart16-May-04 11:47
protectorHeath Stewart16-May-04 11:47 
GeneralThreads and context switches Pin
devvvy16-May-04 7:44
devvvy16-May-04 7:44 
GeneralRe: Threads and context switches Pin
Heath Stewart16-May-04 11:44
protectorHeath Stewart16-May-04 11:44 
GeneralRe: Threads and context switches Pin
devvvy16-May-04 18:07
devvvy16-May-04 18:07 

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.