protected async Task CompleteViewModelClosingAsync()
{
while (true)
{
lock (_lockObject)
{
if (!IsClosingViewModel)
{
return;
}
}
Log.Debug($"View '{TargetViewType}' is still closing the view model, awaiting completion");
await TaskShim.Delay(5);
}
}