Skip to main content
1-Visitor
October 28, 2015
Solved

Edge SDK (specifically .NET) - getting current session user name in service request

  • October 28, 2015
  • 1 reply
  • 1481 views

With the .NET Edge SDK, is it possible to get the current session user name when processing a service request in a virtual thing?

For example, in the SteamSensor sample project, in the SteamThing.AddNumbers() method, is there some way to get the name of the user who initiated the request? Or is it necessary to add a 'username' input parameter to method and pass it in explicitly?

Best answer by dlouis

The 'username' parameter would need to be passed to the service explicitly.

1 reply

dlouis5-Regular MemberAnswer
5-Regular Member
October 29, 2015

The 'username' parameter would need to be passed to the service explicitly.