Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Thwaites 14 posts 100 karma points
    Aug 07, 2019 @ 13:40
    Chris Thwaites
    0

    Composer equivalent to BeginRequest, endRequest, Error

    I've just about worked out how to use a composer to replace my old Global.asax.OnApplicationStarted code, but I'm still completely in the dark about how to replace my old code:

        protected new void Application_Error(object sender, EventArgs e)
        {
            // my code here
        }
    
        internal void Application_BeginRequest(object sender, EventArgs e)
        {
            // my code here
        }
    
        internal void Application_EndRequest(object sender, EventArgs e)
        {
            // my code here
        }
    

    I'm sure I'm missing something very obvious, can anyone give a code snippet to run code under these events in v8?

  • Nik 1612 posts 7258 karma points MVP 7x c-trib
    Aug 07, 2019 @ 14:02
    Nik
    100

    Hi Chris,

    Composers are there to help replace the ApplicationEventHandler class, if you want to interact with Global.asax, I believe you still do it the same way.

    If I'm wrong, hopefully someone will correct me :-)

    Thanks

    Nik

  • Chris Thwaites 14 posts 100 karma points
    Aug 08, 2019 @ 09:34
    Chris Thwaites
    0

    Oh, OK. Cool. Guess I got the wrong end of the stick.

    All working now under v8 with my old v7 code, thanks!

Please Sign in or register to post replies

Write your reply to:

Draft