private static string GetServiceName(string suppliedServiceName, string serviceDefinitionName)
{
// If user supplied value as parameter then return it
//
if (!string.IsNullOrEmpty(suppliedServiceName))
{
return suppliedServiceName;
}
// Check to see if you have service name from *csdef
//
if (string.IsNullOrEmpty(serviceDefinitionName))
{
// This line will be touched only if the cmd running doesn't require service name
//
return string.Empty;
}
return serviceDefinitionName;
}