#noah12224_best-practices

1 messages ¡ Page 1 of 1 (latest)

open flaxBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1427684590629425212

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fossil oak
#

Hi there

#

I don't have a great deal of familiarity with dotnet myself. Reviewing the resources at the moment but I might need to find a colleague that can speak with more authority

#

okay, thanks for waiting - I spoke with a colleague that has more familiarity with dotnet

#

So the StripeClient is meant to be reusable, so you don't need to create a new one for each request, but if the same code is switching account contexts, you would need to initialize a new StripeClient when changing api keys

lethal mauve
#

Yep, I think that all makes sense to me just wanted to check that approach aligned with best practices. Thanks for the help!