Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I want to save a value to a global variable one in the OnApplicationStarted event.
Any ideas on how I would do this?
If I was using the Global.asx file I could have done this by saving a value to Application["myvar"].
Thanks
Paul
Maybe Runtime cache will help you
https://our.umbraco.org/documentation/reference/cache/updating-cache
http://www.codeshare.co.uk/blog/simple-reusable-net-caching-example-code-in-c/
Hi Marcio,
That did the trick.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Global variable in OnApplicationStarted
Hello,
I want to save a value to a global variable one in the OnApplicationStarted event.
Any ideas on how I would do this?
If I was using the Global.asx file I could have done this by saving a value to Application["myvar"].
Thanks
Paul
Maybe Runtime cache will help you
https://our.umbraco.org/documentation/reference/cache/updating-cache
http://www.codeshare.co.uk/blog/simple-reusable-net-caching-example-code-in-c/
Hi Marcio,
That did the trick.
Thanks
Paul
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.