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?
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.
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.
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
Use HttpModules: http://msdn.microsoft.com/en-us/library/aa719858%28v=vs.71%29.aspx
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
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.
I also need to access the Application_OnStart event
Just treat the Init() method as 'Application_Start': http://erraticdev.blogspot.com/2010/08/writing-ihttpmodule-thats-able-to.html
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
is working on a reply...