AzureSiteReplicator.Data.PublishSettings.AppendHandlerIfNotSpecified C# (CSharp) Method

AppendHandlerIfNotSpecified() static private method

static private AppendHandlerIfNotSpecified ( string publishUrl ) : string
publishUrl string
return string
        internal static string AppendHandlerIfNotSpecified(string publishUrl)
        {
            if (!publishUrl.EndsWith(MSDeployHandler, StringComparison.OrdinalIgnoreCase))
            {
                if (publishUrl.EndsWith("/"))
                {
                    publishUrl = publishUrl + MSDeployHandler;
                }
                else
                {
                    publishUrl = publishUrl + "/" + MSDeployHandler;
                }
            }

            return publishUrl;
        }