After viewing .net on the IIS7 application lifecycle:
For maximum performance, I want to get my code in a way, as soon as HTTPTPNactact object is created but before HTTPEpiCation. (The code is easy to run after the HTTP application class is loaded, but before any event has been triggered before using the constructor of an HTTP module like this:
< Code> public class AuthModule: IHttpModule {public AuthModule} {HttpContext.Current.Response.Write ("Hello world"); HttpContext.Current.Response.End ();} #region IHttpModule Member Public Zero Extracting () {} Public Zero Init (HttpApplication Reference) {} #endregion}
I know that I The user object will not have access, but I will not need it.
You can never make sure that your code begins before the example of HTTPPC, because These examples can be reused.
Along with this, the code in this phase is running the pipeline's scope. You should ask yourself that it is really worth doing.
And what about this performance? Do you really think that the timing of creating an event of HTTPAPCimation is going to register in your performance?
Take one step back and reconsider.
Comments
Post a Comment