Jason
Restart method with fresh list to iterate through without triggering 'collection was modified' error
SOLVED: I needed to create a new list scoped to that try-catch block and pass the current lists' contents to that new one, then iterate through that one. Simple.
7 replies
Restart method with fresh list to iterate through without triggering 'collection was modified' error
So, normally the task just ends on its own and I then need to manually restart the process with a fresh list. I'm trying to automate that process under certain exceptions. That's why.
7 replies
Restart method with fresh list to iterate through without triggering 'collection was modified' error
I am using item inside the loop. I didn't include the exact logic for simplicity's sake, but that item is being stored in the db if it meets certain criteria. So it is being used.
7 replies
ActivatorUtilities.CreateInstance of a class instantiated within Program.cs 'unable to resolve type'
Why did that work. I knew about the lack of async but left it as is because, long story short, the parsing method is making use of two services, one of of which is async, the other not. So I was just Task.FromResult()ing that
15 replies