ServiceMonitor use to call AppCmd twice per environment variable, which has a huge impact on container startup time.
Implements:
Combine appcmd calls together by operates multiple environment variable as once.
EX.
.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='DefaultAppPool'].environmentVariables.[name='foo1',value='bar1']" /commit:apphost
.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='DefaultAppPool'].environmentVariables.[name='foo2',value='bar2]" /commit:apphost
is now accomplished in one call
.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='DefaultAppPool'].environmentVariables.[name='foo1',value='bar1']" /+"[name='DefaultAppPool'].environmentVariables.[name='foo2',value='bar2']" /commit:apphost
Service will only call appcmd twice:
1 Remove all the environment variable from applicationHost.config.
2 Add all the environment variable to applicationHost.config.
ServiceMonitor use to call AppCmd twice per environment variable, which has a huge impact on container startup time.
Implements: Combine appcmd calls together by operates multiple environment variable as once.
EX. .\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='DefaultAppPool'].environmentVariables.[name='foo1',value='bar1']" /commit:apphost
.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='DefaultAppPool'].environmentVariables.[name='foo2',value='bar2]" /commit:apphost
is now accomplished in one call
.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='DefaultAppPool'].environmentVariables.[name='foo1',value='bar1']" /+"[name='DefaultAppPool'].environmentVariables.[name='foo2',value='bar2']" /commit:apphost
Service will only call appcmd twice: 1 Remove all the environment variable from applicationHost.config. 2 Add all the environment variable to applicationHost.config.