public string GetTenantEndpoint(bool legacy, string protocol, string server, string port, string tenant) { return(legacy ? string.Format(_serviceConfigManager.GetSamlLegacyEndPoint(), protocol, server, port, tenant) : string.Format(_serviceConfigManager.GetLoginEndPoint(), protocol, server, port, tenant)); }