Getting current user name

Hi all,

How could we get smart client current user name in plugin integration?

Thank a lot!

KennethT

This snippet is used in the Chat sample:

LoginSettings ls = LoginSettingsCache.GetLoginSettings(EnvironmentManager.Instance.MasterSite);
_myName = ls.UserName;