Пример #1
0
        public async Task Unload(CancellationToken ct)
        {
            ShortDisposables.Dispose();
            await Task.WhenAll(ViewModels.Select(vm => vm.Unload(ct)));

            await OnUnloaded(ct);
        }
Пример #2
0
 public virtual void Dispose()
 {
     LongDisposables.Dispose();
     ShortDisposables.Dispose();
 }