public void Intercept(IInvocation invocation) { var name = ServiceSecurityContext.Current.WindowsIdentity.Name; if (_employeeDao.FindByLoginID(name) == null) { throw new SecurityAccessDeniedException(); } else { invocation.Proceed(); } }
internal bool Authenticate() { var name = ServiceSecurityContext.Current.WindowsIdentity.Name; return(_employeeDao.FindByLoginID(name) != null); }