Beispiel #1
0
        public HomeController(IDocumentSession documentSession,
                              ICustomFormsAuthentication customCustomFormsAuthentication) : base(documentSession)
        {
            Condition.Requires(customCustomFormsAuthentication).IsNotNull();

            _customFormsAuthentication = customCustomFormsAuthentication;
        }
        public HomeController(IDocumentSession documentSession, ICustomFormsAuthentication customCustomFormsAuthentication)
            : base(documentSession)
        {
            Condition.Requires(customCustomFormsAuthentication).IsNotNull();

            _customFormsAuthentication = customCustomFormsAuthentication;
        }
        public UsersController(DocumentStores documentStore, ICustomFormsAuthentication customCustomFormsAuthentication,
                               IOAuthAuthentication oAuthAuthentication)
            : base(documentStore)
        {
            Condition.Requires(customCustomFormsAuthentication).IsNotNull();
            Condition.Requires(oAuthAuthentication).IsNotNull();
            Condition.Requires(oAuthAuthentication.FacebookAppId).IsNotNullOrEmpty();
            Condition.Requires(oAuthAuthentication.FacebookSecret).IsNotNullOrEmpty();

            _customFormsAuthentication = customCustomFormsAuthentication;
            _facebookAppId = oAuthAuthentication.FacebookAppId;
            _facebookSecret = oAuthAuthentication.FacebookSecret;
        }
        public UsersController(IDocumentSession documentSession,
                               ICustomFormsAuthentication customCustomFormsAuthentication,
                               IOAuthAuthentication oAuthAuthentication)
            : base(documentSession)
        {
            Condition.Requires(customCustomFormsAuthentication).IsNotNull();
            Condition.Requires(oAuthAuthentication).IsNotNull();
            Condition.Requires(oAuthAuthentication.FacebookAppId).IsNotNullOrEmpty();
            Condition.Requires(oAuthAuthentication.FacebookSecret).IsNotNullOrEmpty();

            _customFormsAuthentication = customCustomFormsAuthentication;
            _facebookAppId             = oAuthAuthentication.FacebookAppId;
            _facebookSecret            = oAuthAuthentication.FacebookSecret;
        }
 public CredentialService(ICustomFormsAuthentication customFormsAuthentication, IHashService hashService, ICredentialRepository credentialRepository)
 {
     this.CustomFormsAuthentication = customFormsAuthentication;
     this.CredentialRepository = credentialRepository;
     this.HashService = hashService;
 }
 //
 // GET: /Login/
 public LoginController(IEmployeeTask employeeTask, ICustomFormsAuthentication customFormsAuthentication)
 {
     EmployeeTask = employeeTask;
     CustomFormsAuthentication = customFormsAuthentication;
 }
 public CredentialService(ICustomFormsAuthentication customFormsAuthentication, IHashService hashService, ICredentialRepository credentialRepository)
 {
     this.CustomFormsAuthentication = customFormsAuthentication;
     this.CredentialRepository      = credentialRepository;
     this.HashService = hashService;
 }
 //
 // GET: /Login/
 public LoginController(IEmployeeTasks employeeTasks, ICustomFormsAuthentication customFormsAuthentication)
 {
     _employeeTasks = employeeTasks;
     _customFormsAuthentication = customFormsAuthentication;
 }
 public AuthenticationController()
 {
     // Not bothering with IoC for this very simple example.
     _customFormsAuthentication = new CustomFormsAuthentication();
 }