public MainViewModel() { UrlByteCount = new NotifyTaskCompletion <int>(MyStaticService.CountBytesInUrlAsync("https://docs.microsoft.com/")); UsingEntity = new NotifyTaskCompletion <int>(MyStaticService.UsingEntity()); ///commands MyAsyncCommand = new AsyncCommand <string>(Calculate, CanCalculate, null, true); }
public NotifyTaskCompletionViewModel() { UrlByteCount = new NotifyTaskCompletion <int>( MyStaticService.CountBytesInUrlAsync("https://www.google.com")); }
public MainViewModel() { this.UrlByteCount = new NotifyTaskCompletion <int>( MyStaticService.CountBytesInUrlAsync("http://www.example.com")); }