-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass a query string when connecting new clients? #3
Comments
I noticed that the client doesn't take any arguments for query parameters. I will hard code it for now for my testing but it can be part of the agent to pass query string paramters.
|
Hi @ali-h2010 Thank you. Yes, it can be part of agent to pass the query string parameters. I will do the required changes and will be available in next release. |
@ali-h2010 Can you send me how you made to solve this issue. even if hard coded. |
just add a parameter after the url. The trick is that, if you want to add multiple parameters, you need to add '&' before each one so it looks like an actual URL query string Ex: |
I tried this:
the thing is since this is an external class outside my project I have no idea how to pass a different Id for each new connection as a parameter to this function CreateAndStartConnection |
@hsulipe , you need to add some logic in LoadTestFlow class to add an extra question to the load test that takes the starting index beside the already existing "How many connections do you want to create". Once done you need to add some logic in CreateAndStartConnection which is already called in a loop for each connection to append the start index number to the userID and increment it for next call. It's a lengthy process but you can follow it if you debug the app and follow the flow of the project. |
I need to pass a query string when connecting such as:
new HubConnection(URL , "id=" + EmployeeID)
Can you please guide me on how to do that?
The text was updated successfully, but these errors were encountered: