Copied to clipboard

Flag this post as spam?

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


  • Tony 12 posts 32 karma points
    Jan 21, 2011 @ 12:27
    Tony
    0

    Extending global.asax in 4.6+

    Hi,

    I need to add a public class and code into the Application_Start method to integrate a chat provider.  I have done this by removing the global.asax.dll and creating a new global.asax file .... it works fine and the chat plug-in works a treat.

    However, for future modifications and upgrades to Umbraco I assume global.asax.dll will be replaced and therefore I a 'better' method.  What is the best way to extend global.asax whilst future proofing as much as possible?

    Tony

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jan 21, 2011 @ 13:13
  • Tony 12 posts 32 karma points
    Jan 21, 2011 @ 15:11
    Tony
    0

    Thought of that - I was wondering if there was a more integrated way into Umbraco.  I'm aware of the other threads and blog here http://blog.mattbrailsford.com/2010/07/11/registering-an-application-start-event-handler-in-umbraco/. But would like to know the best way to support future versions of Umbraco.

     

    Tony

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jan 21, 2011 @ 15:14
    Stefan Kip
    0

    Well, using HttpModules is better imho, because it is not umbraco specific, only .NET specific.
    So you can re-use any created HttpModule easily in any .NET project, not only umbraco projects.

  • Tony 12 posts 32 karma points
    Jan 21, 2011 @ 15:14
    Tony
    0

    I also need to access the Application_OnStart event

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jan 21, 2011 @ 15:18
    Stefan Kip
    0

    Just treat the Init() method as 'Application_Start': http://erraticdev.blogspot.com/2010/08/writing-ihttpmodule-thats-able-to.html

  • Tony 12 posts 32 karma points
    Jan 24, 2011 @ 11:52
    Tony
    0

    For future readers:

    HttpModule works fine with the Init method used in place of the Application_OnStart.

    CuteChat from CuteSoft works well and integrates quite easily for a 'Live Support' client - I assume the web chat would work fine as well.

    I have created my own membership provider, but the default membership provider should work without too much issues for the chat client.  CuteChat does seem to have a couple of nuances that don't appear obvious, but the support for the plug-in is good.

    Tony

Please Sign in or register to post replies

Write your reply to:

Draft