Beispiel #1
0
        public Task <string> GetAsync(string key)
        {
            if (string.IsNullOrWhiteSpace(key))
            {
                throw new ArgumentNullException(nameof(key));
            }

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

            return(Task.FromResult(value));
        }
Beispiel #2
0
        public bool Remove(string key)
        {
            var kc = new KeyChain(DefaultAccessible);

            return(kc.Remove(key));
        }