public static ServiceSettings GetDefaultSettings(
string rootPath,
string inServiceName,
string slot,
string location,
string affinityGroup,
string storageName,
string subscription,
out string serviceName)
{
ServiceSettings serviceSettings;
if (string.IsNullOrEmpty(rootPath))
{
serviceSettings = ServiceSettings.LoadDefault(null, slot, location, affinityGroup, subscription, storageName, inServiceName, null, out serviceName);
}
else
{
serviceSettings = ServiceSettings.LoadDefault(
new CloudServiceProject(rootPath, null).Paths.Settings,
slot,
location,
affinityGroup,
subscription,
storageName,
inServiceName,
new CloudServiceProject(rootPath, null).ServiceName,
out serviceName);
}
return serviceSettings;
}