Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

static classes and multiple instances on azure

Tags:

c#

azure

I'm building an app that will be deployed on Azure.

If I use a static class, will all the instances have access to the same exact static object or will each instance have its own static object instantiated when each instance is spawn.

like image 381
frenchie Avatar asked Dec 10 '12 22:12

frenchie


1 Answers

static fields have one value per AppDomain.

They emphatically do not share values across computers.

like image 61
SLaks Avatar answered Sep 28 '22 06:09

SLaks