private void AuditTrailServiceInstance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { //Do not remove this line. Usually, the current user name is supplied by an XAF application's Security System. //However, the FeatureCenter demo doesn't use the Security System module. //That's why we have to use the WindowsIdentity, to get the current user name. e.CurrentUserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; }
private void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = String.Format("Web user ({0})", HttpContext.Current.Request.UserHostAddress); }
static void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; }
void OnAuditTrailServiceInstanceQueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = Context.User.Identity.Name; }
static void AuditTrailService_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = WindowsIdentity.GetCurrent().Name; }
private static void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = WindowsIdentity.GetCurrent().Name; }
private void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = String.Format("Web user ({0}-{1})", HttpContext.Current.Request.UserHostAddress, WebApplication.Instance.Security.UserName); }
private void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = String.Format("Web user ({0}-{1})", HttpContext.Current.Request.UserHostAddress, WebApplication.Instance.Security.UserName); }
private void Instance_QueryCurrentUserName(Object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = String.Format("Web user ({0})", HttpContext.Current.Request.UserHostAddress); }
static void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; }
void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e) { e.CurrentUserName = WindowsIdentity.GetCurrent().Name; }