Forum Discussion

dfirka1970's avatar
dfirka1970
Copper Contributor
Oct 29, 2020

Singleton in Functions

Quick question, is there any best practice to maintain an object with static information so that i dont have to repopulate on each fn call?

 

Sorry maybe this is explained in the docs, just point me to where to look. 

Thanks

2 Replies

    • dfirka1970's avatar
      dfirka1970
      Copper Contributor

      AnthonyChu , using c# over AzFun on windows host.

      (in our webapi solution we have a singleton object which mantains some configuration information and data related to tenants, nothing stateful but save us some time during execution)

      thxs

Resources