示例#1
0
 public OrderSession(IOrderUow uow, HttpSessionStateBase httpSession, IPrincipal usr)
 {
     this.orderUow = uow;
     this.httpSession = httpSession;
     this.user = usr;
 }
 /// <summary>
 /// LoginEventArgs
 /// </summary>
 /// <param name="principal"></param>
 /// <param name="type"></param>
 /// <param name="message"></param>
 public LoginEventArgs(System.Security.Principal.IPrincipal principal, LoginFailType type, string message)
 {
     m_principal = principal;
     m_loginFailType = type;
     m_message = message;
 }
示例#3
0
            public FakeUserContext(string p)
            {
                if (string.IsNullOrEmpty(p))
                    throw new ArgumentException();

                _original = System.Threading.Thread.CurrentPrincipal;
                System.Threading.Thread.CurrentPrincipal = _principal = new FakeUser(new FakeIdent(p, true));
            }