Microsoft.WindowsAzure.Commands.Utilities.CloudService.ServiceSettings.GetServiceName C# (CSharp) Method

GetServiceName() private static method

private static GetServiceName ( string suppliedServiceName, string serviceDefinitionName ) : string
suppliedServiceName string
serviceDefinitionName string
return string
        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;
        }