Skip to content

Instantly share code, notes, and snippets.

@punker76
Created April 27, 2020 20:11
Show Gist options
  • Save punker76/921a5b19e92dfa67f8d914b43a9d1097 to your computer and use it in GitHub Desktop.
Save punker76/921a5b19e92dfa67f8d914b43a9d1097 to your computer and use it in GitHub Desktop.
IncludeRelease
public bool IncludeRelease
{
get { return _includeRelease; }
set
{
if (SetPropertyValue(ref _includeRelease, value))
{
_cts.Cancel();
AvailableVersions = new Utilities.NotifyTaskCompletion<ObservableCollection<SemanticVersion>>(
availableVersionsTask
.ContinueWith(task => new ObservableCollection<SemanticVersion>(task.Result))
.WithCancellation(_cts.Token));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment