private Uri GetBusUri(BusEndpointType type, string applicationName, string machineName) { string endpointTypeSuffix = (type == BusEndpointType.Control) ? string.Empty : SuffixDelimiter + type.ToString(); return new Uri( string.Format( BusEndpointUriFormat, machineName, applicationName, endpointTypeSuffix) .ToLowerInvariant()); }