GenerateHubProxyCommand.OutputHubsFromUrl() #1296

Open
gustavo-armenta opened this Issue Jan 10, 2013 · 0 comments

Projects

None yet

1 participant

@gustavo-armenta
Contributor

EndsWith() should contain the '/' added

        private static void OutputHubsFromUrl(string url, string outputPath, bool absolute)
        {
            string baseUrl = null;
            if (!url.EndsWith("/"))
            {
                url += "/";
            }

            if (!url.EndsWith("signalr"))
            {
                url += "signalr/";
            }

            baseUrl = url;
            if (!url.EndsWith("hubs", StringComparison.OrdinalIgnoreCase))
            {
                url += "hubs";
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment