private static string GenerateResourcePath(Protocol protocol, string distributionDomain, string path) { if (protocol == Protocol.http || protocol == Protocol.https) { return protocol.ToString() + "://" + distributionDomain + "/" + path; } else { return path; } }