Пример #1
0
 /// <summary>
 /// This loads the keys from a path. They are not updated.
 /// </summary>
 /// <param name="keyPath"></param>
 /// <returns></returns>
 public async Task <bool> AddStaticKeyPathAsync(string keyPath)
 {
     keyPath = _source.FormValidKey(keyPath);
     return((await AddInitialKeyPathAsync(keyPath)) > -1);
 }
Пример #2
0
 public async Task <bool> AddStaticKeyPathAsync(string keyPath, bool singleKey)
 {
     keyPath = _source.FormValidKey(keyPath, dontPreifxStart: singleKey);
     return((await AddInitialKeyPathAsync(keyPath, singleKey).ConfigureAwait(false)) > -1);
 }
Пример #3
0
 /// <summary>
 /// This loads the keys from a path. They are not updated.
 /// </summary>
 /// <param name="keyPath"></param>
 /// <returns></returns>
 public Task <bool> AddStaticKeyPathAsync(string keyPath)
 {
     keyPath = _source.FormValidKey(keyPath);
     return(AddInitialKeyPathAsync(keyPath).ContinueWith(r => r.Result > -1));
 }