예제 #1
0
        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);
        }
예제 #2
0
 public static bool IsForeign(this ILocalhost localhost, IKey key)
 {
     return(!localhost.IsLocal(key));
 }