public static bool KeyNeedsRemap(this Localhost localhost, Uri key) { // relative uri's are always local to our service. if (!key.IsAbsoluteUri) { return(false); } // cid: urls signal placeholder id's and so are never to be considered as true identities if (IsCID(key)) { return(true); } // Check whether the uri starts with a well-known service path that shares our ID space. // Or is an external path that we don't share id's with return(localhost.HasEndpointFor(key)); }
public KeyMapper(Localhost localhost) { //this.generator = generator; this.localhost = localhost; }