-
I distinctly remember a thread a thread on GraphServiceClients where it stated that it was not advisable to make more than one for a program. Does anyone know what the maximum number of clients is and where that is documented? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This simple question is difficult to answer by nature. If you look at the Graph Service Client it caries multiple things:
The main reason to have to instantiate multiple request adapters is usually to swap authentication context (i.e. on behalf flow or similar, with lots of different users). In which case our advice it to create an http client using the factories provided in the core package, keep it as a singleton, and pass it when instantiating request adapters to be used with authentication providers/service clients as needed. The bottom line being:
|
Beta Was this translation helpful? Give feedback.
This simple question is difficult to answer by nature. If you look at the Graph Service Client it caries multiple things: