Skip to content

Setting connection timeout with v3.0.0 #704

@AllenConquest

Description

@AllenConquest

I am trying to migrate from 2.9.0 to 3.0.0. I have hit a problem with building the new GraphServiceClient. Currently I provide it with a IHttpProvider, so I can control the connection timeout. I use this code:

final IHttpProvider myHttpProvider = DefaultClientConfig
    .createWithAuthenticationProvider(myAuthProvider)
    .getHttpProvider(myHttpClient);

myHttpProvider
    .getConnectionConfig()
    .setConnectTimeout(CONNECTION_TIMEOUT);

However the DefaultClientConfig doesn't seem to exist in the new version. How would I achieve the same results in the new library?

Thanks,

Allen
AB#8656

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions