question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for app level initialization logic

See original GitHub issue

e.g. in this thread, the user needs to call ThreadPool.SetMinThreads, and currently we have no good place to make App Domain init time calls.

Of course, that gives user potential to make some bad calls, but that’s a small concern compared to the scenarios that can unblock (and the could make the same calls in a function anyway).

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:22
  • Comments:54 (14 by maintainers)

github_iconTop GitHub Comments

17reactions
erikschlegelcommented, Mar 25, 2017

Hey - just wanted to revisit the discussion to see if an app level Azure Function init hook feature is on the horizon?

6reactions
contractorwolfcommented, Sep 11, 2016

is there some documentation of the Azure Function lifecycle? I am imagining that there is a server that is hosting the individual functions and the first request loads your function (executing the require statements, the code inline before the export and then instantiating the export) and then holds that function up for an indeterminate amount of time (AWS was 2-5 minutes with their Lambda service). When a second request comes in if there is a live function running it can respond to the request (using that instance initialization parameters) it does, if not it starts a new one up. Please correct me if I am mistaken, I want to understand this better.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Startup | Android Developers
The App Startup library provides a straightforward, performant way to initialize components at application startup.
Read more >
The operation 'Initialize variable' can only be used at top level
Logic app by design only supports Initialization of variables on Global Level(variables are global within an instance of Logic App ...
Read more >
Create variables to store and pass values - Azure Logic Apps
In the Azure portal, open your workflow in the designer. In the designer, follow these general steps to add an action named Initialize...
Read more >
IIS 8.0 Application Initialization
The Application Initialization feature is configured through a combination of global and application-specific rules that tell IIS 8.0 how and ...
Read more >
Where to insert code for application startup? - android
You can write a custom Application class (extend from android.app.Application). Override onCreate to specify what happens when the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found