コード例 #1
0
        public void Intercept(IInvocation invocation)
        {
            var name = ServiceSecurityContext.Current.WindowsIdentity.Name;

            if (_employeeDao.FindByLoginID(name) == null)
            {
                throw new SecurityAccessDeniedException();
            }
            else
            {
                invocation.Proceed();
            }
        }
コード例 #2
0
        internal bool Authenticate()
        {
            var name = ServiceSecurityContext.Current.WindowsIdentity.Name;

            return(_employeeDao.FindByLoginID(name) != null);
        }