static Task PlatformSetAsync(string key, string data)
        {
            var kc = new KeyChain();

            kc.SetValueForKey(data, key, Alias);

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

            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            var kc = new KeyChain(accessible);

            kc.SetValueForKey(value, key, Alias);

            return(Task.CompletedTask);
        }