Example #1
0
        public static void Sync(Context context)
        {
            switch (Platform(context: context))
            {
            case "windows":
                LdapDs.Sync(context: context);
                break;

            default:
                LdapNovelDs.Sync(context: context);
                break;
            }
        }
Example #2
0
        public static bool Authenticate(Context context, string loginId, string password)
        {
            switch (Platform(context: context))
            {
            case "windows":
                return(LdapDs.Authenticate(
                           context: context,
                           loginId: loginId,
                           password: password));

            default:
                return(LdapNovelDs.Authenticate(
                           context: context,
                           loginId: loginId,
                           password: password));
            }
        }
Example #3
0
        public static void UpdateOrInsert(Context context, string loginId)
        {
            switch (Platform(context: context))
            {
            case "windows":
                LdapDs.UpdateOrInsert(
                    context: context,
                    loginId: loginId);
                break;

            default:
                LdapNovelDs.UpdateOrInsert(
                    context: context,
                    loginId: loginId);
                break;
            }
        }