Change Session initialization to happen in the background

Description

Creating a session object should trigger the initialization task but waiting for the initialization to end should only happen when a request is executed.

should be picked up as a follow up of this ticket because otherwise the session object becomes unusable if the initialization fails.

We should also add an InitializationTimeout that applies to the requests that wait for the initialization task to finish.

Example API:

Environment

None

Assignee

Joao Reis

Reporter

Joao Reis

Labels

None

PM Priority

None

Fix versions

External issue ID

None

Doc Impact

None

Reviewer

None

Pull Request

None

Epic Link

None

Sprint

C# P-MAJOR-NEXT

Pull Requests

None

Size

None

Priority

Major
Configure