public static KeyKind GetKeyKind(this ILocalhost localhost, IKey key) { if (key.IsTemporary()) { return(KeyKind.Temporary); } if (!key.HasBase()) { return(KeyKind.Internal); } return(localhost.IsLocal(key) ? KeyKind.Local : KeyKind.Foreign); }
public static bool IsForeign(this ILocalhost localhost, IKey key) { return(!localhost.IsLocal(key)); }