If you want to use this module against multiple WAPI endpoints, you currently have to either keep resetting the config values with Set-IBWAPIConfig or skip it and just pass the config values directly on each call. Both methods are annoying.
This change adds the ability for Set-IBWAPIConfig to support saving a config set per WAPIHost. Under the hood it's just a hashtable of config sets using WAPIHost as the key. Calling Set-IBWAPIConfig with just a -WAPIHost param will switch the currently active set. Adding additional parameters will switch and set those values. With no -WAPIHost param, it will just modify the values of the currently active set.
If you want to use this module against multiple WAPI endpoints, you currently have to either keep resetting the config values with
Set-IBWAPIConfig
or skip it and just pass the config values directly on each call. Both methods are annoying.This change adds the ability for
Set-IBWAPIConfig
to support saving a config set perWAPIHost
. Under the hood it's just a hashtable of config sets using WAPIHost as the key. CallingSet-IBWAPIConfig
with just a-WAPIHost
param will switch the currently active set. Adding additional parameters will switch and set those values. With no-WAPIHost
param, it will just modify the values of the currently active set.