Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Maintain the global variable periodic

$
0
0

Recently, I created new ASP.NET 5 Web API project.  It will call other third part RESTfull Web API with token. 

So  that I need to maintain the token for each fixed time(I plan to use the Timer to update the token ).

But where to configure the Timer and maintain the token after the application starts up? It should not be set in Startup.cs since it only has the configuration stuff..  

It can be able to update token after all configuration is already done.

Do you have any good idea?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>