camel
camel
CC#
Created by () => { return null; } on 6/18/2023 in #help
❔ Only onecompilation unit can have top-level statements.
What does your api message request builder do? Looks interesting to me
10 replies
CC#
Created by camel on 12/8/2022 in #help
❔ FluentAssertions excluding collection elements
thanks!
7 replies
CC#
Created by camel on 12/8/2022 in #help
❔ FluentAssertions excluding collection elements
alright that will do
7 replies
CC#
Created by camel on 10/3/2022 in #help
Inject http client only for specified service [Answered]
two service collections sounds like an antipattern
32 replies
CC#
Created by camel on 10/3/2022 in #help
Inject http client only for specified service [Answered]
It's definitely not what I want 😄
32 replies
CC#
Created by camel on 10/3/2022 in #help
Inject http client only for specified service [Answered]
Alright thank you guys for the answers. I’ll see if I’ll go the way with the second service collection or if I’ll just not bother changing it.
32 replies
CC#
Created by camel on 10/3/2022 in #help
Inject http client only for specified service [Answered]
The RemoteApiClient is a dependency of FooBarService. FooBarService must use the RemoteApiClient internally.
32 replies
CC#
Created by VeQox on 9/14/2022 in #help
await threads to finish their tasks [Answered]
ok, my bad
35 replies
CC#
Created by VeQox on 9/14/2022 in #help
await threads to finish their tasks [Answered]
It's mostly about the non-blocking properties, not about parallelism. That is, if you don't start a new thread.
35 replies
CC#
Created by VeQox on 9/14/2022 in #help
await threads to finish their tasks [Answered]
What I meant is that you need to let your new task run in a new thread, if you want it to be multithreaded. https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/task-asynchronous-programming-model#BKMK_Threads
35 replies
CC#
Created by VeQox on 9/14/2022 in #help
await threads to finish their tasks [Answered]
It’s the order of execution that changes though
35 replies
CC#
Created by VeQox on 9/14/2022 in #help
await threads to finish their tasks [Answered]
Tasks are not multi threading
35 replies
CC#
Created by VeQox on 9/14/2022 in #help
await threads to finish their tasks [Answered]
Tasks run in the same thread afaik
35 replies
CC#
Created by camel on 8/28/2022 in #help
Inject AppDbContext with parameterized constructor
I'll use AddDbContext from now on. Thank you.
36 replies
CC#
Created by camel on 8/28/2022 in #help
Inject AppDbContext with parameterized constructor
Actually, yes. WTF am I doing?!
36 replies
CC#
Created by camel on 8/28/2022 in #help
Inject AppDbContext with parameterized constructor
like if you have logging and then some logging option set, you would not want to set a logging option if logging is not set
36 replies
CC#
Created by camel on 8/28/2022 in #help
Inject AppDbContext with parameterized constructor
The argument is that, if you have two options that need to be set in pairs, then they are encapsulated here
36 replies