示例#1
0
 public BackdoorController(IUserRepository users, 
     IAuthCookieFactory authCookieFactory)
 {
     if (users == null) throw new ArgumentNullException("users");
     if (authCookieFactory == null) throw new ArgumentNullException("authCookieFactory");
     this.users = users;
     this.authCookieFactory = authCookieFactory;
 }
示例#2
0
 public PublicController(
     IAuthCookieFactory cookieFactory, 
     IUserFactory userFactory, 
     IDocumentStore documentStore)
 {
     if (cookieFactory == null) throw new ArgumentNullException("cookieFactory");
     if (userFactory == null) throw new ArgumentNullException("userFactory");
     if (documentStore == null) throw new ArgumentNullException("documentStore");
     this.cookieFactory = cookieFactory;
     this.documentStore = documentStore;
     this.userFactory = userFactory;
 }
示例#3
0
 public AuthCookieAttribute(IAuthCookieFactory cookieFactory)
 {
     if (cookieFactory == null) throw new ArgumentNullException("cookieFactory");
     this.cookieFactory = cookieFactory;
 }