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