If I have 2 Asp.Net
websites running on my machine and 2 PowerShell
windows open, how many instances of the Static class System.Net.ServicePointManager
are there?
One per machine? One per Application Domain? One per Process?
If I have 2 Asp.Net
websites running on my machine and 2 PowerShell
windows open, how many instances of the Static class System.Net.ServicePointManager
are there?
One per machine? One per Application Domain? One per Process?
Nothing in the docs suggest that the ServicePointManager
instance is anything other than a standard static instance.
Normal rules should apply: It is destroyed when the Application Domain is destroyed and we infer that there is one-per-Application Domain.
You can verify for PowerShell
by opening two powershell Windows and typing
[System.Net.ServicePointManager]::DefaultConnectionLimit--; [System.Net.ServicePointManager]::DefaultConnectionLimit
in one of them and
[System.Net.ServicePointManager]::DefaultConnectionLimit++; [System.Net.ServicePointManager]::DefaultConnectionLimit
in the other.