Skip to content

Instantly share code, notes, and snippets.

@jfversluis
Created August 17, 2017 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfversluis/60ca4161e5e9a0cb86a9aa4c8025afcc to your computer and use it in GitHub Desktop.
Save jfversluis/60ca4161e5e9a0cb86a9aa4c8025afcc to your computer and use it in GitHub Desktop.
Basic plumbing
private readonly ObservableRangeCollection<Breach> _breaches = new ObservableRangeCollection<Breach>();
public ObservableCollection<Breach> Breaches => _breaches;
private ICommand refreshCommand;
public ICommand RefreshCommand
{
get
{
return refreshCommand ??
(refreshCommand = new Command(() => LoadBreaches(), () => !IsLoading));
}
}
private IBeenPwnedClient _pwnedClient = new BeenPwnedClient($"AkavacheSample");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment