Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 private void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e)
 {
     e.CurrentUserName = String.Format("Web user ({0})", HttpContext.Current.Request.UserHostAddress);
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 5
0
 static void AuditTrailService_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e)
 {
     e.CurrentUserName = WindowsIdentity.GetCurrent().Name;
 }
Ejemplo n.º 6
0
 private static void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e)
 {
     e.CurrentUserName = WindowsIdentity.GetCurrent().Name;
 }
Ejemplo n.º 7
0
 private void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e)
 {
     e.CurrentUserName =
         String.Format("Web user ({0}-{1})", HttpContext.Current.Request.UserHostAddress, WebApplication.Instance.Security.UserName);
 }
Ejemplo n.º 8
0
 private void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e)
 {
     e.CurrentUserName =
         String.Format("Web user ({0}-{1})", HttpContext.Current.Request.UserHostAddress, WebApplication.Instance.Security.UserName);
 }
Ejemplo n.º 9
0
 private void Instance_QueryCurrentUserName(Object sender, QueryCurrentUserNameEventArgs e) {
     e.CurrentUserName = String.Format("Web user ({0})", HttpContext.Current.Request.UserHostAddress);
 }
Ejemplo n.º 10
0
 static void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e)
 {
     e.CurrentUserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
 }
Ejemplo n.º 11
0
 void Instance_QueryCurrentUserName(object sender, QueryCurrentUserNameEventArgs e)
 {
     e.CurrentUserName = WindowsIdentity.GetCurrent().Name;
 }