예제 #1
0
        public MainPage()
        {
            this.InitializeComponent();

            keyFactory = new U2FHidKeyFactory(hidFactory);
            storePath  = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "store.json");
            dataStore  = new JsonFileDataStore(new GuidSessionIdGenerator(), storePath);
        }
예제 #2
0
 private void ClearClicked(object sender, RoutedEventArgs e)
 {
     File.Delete(storePath);
     dataStore = new JsonFileDataStore(new GuidSessionIdGenerator(), storePath);
 }