Esempio n. 1
0
 public AccountController(IOAuthWebSecurityWrapper oAuthWebSecurityWrapper,
                          IAccountRepository accountRepository,
                          IFormsAuthenticationWrapper formsAuthenticationWrapper) {
     _oAuthWebSecurityWrapper = oAuthWebSecurityWrapper;
     _accountRepository = accountRepository;
     _formsAuthenticationWrapper = formsAuthenticationWrapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 //public AccountController()
 //    : this(new MembershipWrapper(), new FormsAuthenticationWrapper(), null)
 //{
 //}
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="membershipObject">The membership object.</param>
 /// <param name="formsAuthenticationObject">The forms authentication object.</param>
 /// <param name="urlHelper">The URL helper.</param>
 public AccountController(IMembershipWrapper membershipObject,
                             IFormsAuthenticationWrapper formsAuthenticationObject,
                             IUrlHelperWrapper urlHelper,
                             IUserProfileService userProfileService,
                             IForgetPasswordRequestService forgetPasswordRequestService,
                              ISettingService settingService)
 {
     this.membership = membershipObject;
     this.Url = urlHelper;
     this.authentication = formsAuthenticationObject;
     this._forgetPasswordRequestService = forgetPasswordRequestService;
     this._settingService = settingService;
     this._userProfileService = userProfileService;
 }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        //public AccountController()
        //    : this(new MembershipWrapper(), new FormsAuthenticationWrapper(), null)
        //{

        //}

        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        /// <param name="membershipObject">The membership object.</param>
        /// <param name="formsAuthenticationObject">The forms authentication object.</param>
        /// <param name="urlHelper">The URL helper.</param>
        public AccountController(IMembershipWrapper membershipObject,
                                 IFormsAuthenticationWrapper formsAuthenticationObject,
                                 IUrlHelperWrapper urlHelper,
                                 IUserProfileService userProfileService,
                                 IForgetPasswordRequestService forgetPasswordRequestService,
                                 ISettingService settingService)
        {
            this.membership     = membershipObject;
            this.Url            = urlHelper;
            this.authentication = formsAuthenticationObject;
            this._forgetPasswordRequestService = forgetPasswordRequestService;
            this._settingService     = settingService;
            this._userProfileService = userProfileService;
        }
Esempio n. 4
0
 public UserService(IUserRepository userRepository, IRoleRepository roleRepository, IProfileRepository profileRepository, IFormsAuthenticationWrapper formsAuthWrapper, ISettingsManager settingsManager, IUserAvatarRepository userAvatarRepository, IUserImageRepository userImageRepository, ISecurityLogService securityLogService, ITextParsingService textParsingService, IBanRepository banRepository, IForgotPasswordMailer forgotPasswordMailer, IImageService imageService)
 {
     _userRepository       = userRepository;
     _roleRepository       = roleRepository;
     _profileRepository    = profileRepository;
     _formsAuthWrapper     = formsAuthWrapper;
     _settingsManager      = settingsManager;
     _userAvatarRepository = userAvatarRepository;
     _userImageRepository  = userImageRepository;
     _securityLogService   = securityLogService;
     _textParsingService   = textParsingService;
     _banRepository        = banRepository;
     _forgotPasswordMailer = forgotPasswordMailer;
     _imageService         = imageService;
 }
Esempio n. 5
0
		public UserService(IUserRepository userRepository, IRoleRepository roleRepository, IProfileRepository profileRepository, IFormsAuthenticationWrapper formsAuthWrapper, ISettingsManager settingsManager, IUserAvatarRepository userAvatarRepository, IUserImageRepository userImageRepository, ISecurityLogService securityLogService, ITextParsingService textParsingService, IBanRepository banRepository, IForgotPasswordMailer forgotPasswordMailer, IImageService imageService)
		{
			_userRepository = userRepository;
			_roleRepository = roleRepository;
			_profileRepository = profileRepository;
			_formsAuthWrapper = formsAuthWrapper;
			_settingsManager = settingsManager;
			_userAvatarRepository = userAvatarRepository;
			_userImageRepository = userImageRepository;
			_securityLogService = securityLogService;
			_textParsingService = textParsingService;
			_banRepository = banRepository;
			_forgotPasswordMailer = forgotPasswordMailer;
			_imageService = imageService;
		}
 public AccountController(ITweetHarborDbContext database, ITweetHarborTwitterService twitter, IFormsAuthenticationWrapper Authentication)
 {
     this.database = database;
     this.twitter = twitter;
     this.authentication = Authentication;
 }
Esempio n. 7
0
        Dictionary <string, IOAuthSignInClient> clients;// = new Dictionary<string, IOAuthSignInClient>();

        public AccountController(ITweetHarborDbContext database, ITweetHarborTwitterService twitter, IFormsAuthenticationWrapper Authentication)
        {
            this.database       = database;
            this.twitter        = twitter;
            this.authentication = Authentication;
        }
Esempio n. 8
0
 public PostHandler(IFormsAuthenticationWrapper formsAuthenticationWrapper)
 {
     this.formsAuthenticationWrapper = formsAuthenticationWrapper;
 }
		public UserAccountController(IDocumentSession documentSession, IFormsAuthenticationWrapper formsAuthentication)
		{
			_documentSession = documentSession;
			_formsAuthentication = formsAuthentication;
		}