public int GetInstanceCountBasedOnExchangeSetType(ExchangeSetType exchangeSetType) { switch (exchangeSetType) { case ExchangeSetType.sxs: return(storageConfig.Value.SmallExchangeSetInstance); case ExchangeSetType.mxs: return(storageConfig.Value.MediumExchangeSetInstance); case ExchangeSetType.lxs: return(storageConfig.Value.LargeExchangeSetInstance); default: return(1); } }
public (string, string) GetStorageAccountNameAndKeyBasedOnExchangeSetType(ExchangeSetType exchangeSetType) { switch (exchangeSetType) { case ExchangeSetType.sxs: return(storageConfig.Value.SmallExchangeSetAccountName, storageConfig.Value.SmallExchangeSetAccountKey); case ExchangeSetType.mxs: return(storageConfig.Value.MediumExchangeSetAccountName, storageConfig.Value.MediumExchangeSetAccountKey); case ExchangeSetType.lxs: return(storageConfig.Value.LargeExchangeSetAccountName, storageConfig.Value.LargeExchangeSetAccountKey); default: return(string.Empty, string.Empty); } }