Retrieves and returns the username that is used to validate the client to the middleware. Invoked when user authentication is required while establishing a connection.

C# |
string OnGetUsername()

The username.

This method is to be implemented by the application developer.