Get current Place

Hi,

could you introduce me how can I read current CfgPlace, where user is log on?

In my case, I want to read current CfgApplication and CfgPlace. First one it’s quite simple:


string wdeApp = configService.RetrieveObject<CfgApplication>(new CfgApplicationQuery() { Name = configService.ApplicationName }).Name;

But cannot find any way how to use above example (of course with CfgPlace and CfgPlaceQuery) to read current CfgPlace. Or is there other way?

That is not a job for CfgServer but for TServer instead. You do a query on the agent state and returns such info. This has been discussed previously. Search the forum