Esempio n. 1
0
        static Task <string> PlatformGetAsync(string key)
        {
            var kc    = new KeyChain(DefaultAccessible);
            var value = kc.ValueForKey(key, Alias);

            return(Task.FromResult(value));
        }
Esempio n. 2
0
        public static Task <string> GetAsync(string key, SecAccessible accessible)
        {
            if (string.IsNullOrWhiteSpace(key))
            {
                throw new ArgumentNullException(nameof(key));
            }

            var kc = new KeyChain(accessible);

            return(Task.FromResult(kc.ValueForKey(key, Alias)));
        }
Esempio n. 3
0
        static Task <string> PlatformGetAsync(string key)
        {
            if (string.IsNullOrWhiteSpace(key))
            {
                throw new ArgumentNullException(nameof(key));
            }

            var kc    = new KeyChain(DefaultAccessible);
            var value = kc.ValueForKey(key, Alias);

            return(Task.FromResult(value));
        }
        static Task <string> PlatformGetAsync(string key)
        {
            var kc = new KeyChain();

            return(Task.FromResult(kc.ValueForKey(key, Alias)));
        }