Szabó, Péter

Results 9 comments of Szabó, Péter

As long as we're taking about controllers - controller actions can mark their parameters as `[FromServices]` ([details link](https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/dependency-injection?view=aspnetcore-6.0#action-injection-with-fromservices)). This does not solve dependencies of "general" (non-controller) classes, nor the very...

@dicko2 Yes, unit tests are different and we can think of a way to reorganize them, but what I was trying to do here is use unit tests to show...

I find the `[RegisterSingletonStartup]` approach quite limiting (you can only use it with hosted services), especially compared to what you can achieve with Autofac. It even feels less "safe" compared...

There is this not-so-much advertised feature since 3.0, which makes makes me think that we might wanna just add Async suffix for async actions: https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio#async-suffix-removal-from-controller-action-names Edit: though there seems to...

@inemtsev It's an option, but I wouldn't couple it together with this PR. I suggest to open an issue if you wanna have a discussion over GH. The list of...

@inemtsev I turned that into an issue #156 We can continue discussion there, or just create a PR :)

While the rule itself sounds, I probably wouldn't want this to be enforced as a blocker. You're right that in the quoted case - and in general pass-through cases `await`...

@inemtsev Not sure if I get what you mean by >it takes away the ability of the caller to decide when to await The caller still has control, it can...

That is a very good point, we should revise the collection suggestions (ref: https://github.com/agoda-com/standards-c-sharp/blob/aad4949aca6c6e6bb5db9f59310d0094c55c0f60/docs/collections/choosing-collection-implementation.md). There might be several analogs for a `List` based on use-case, but `SynchronizedCollection` is probably the...