public SkautIsUserService(
            IMembershipService membershipService,
            IAuthenticationService authenticationService,
            IPasswordGeneratorService passwordGeneratorService,
            IWorkContextAccessor workContextAccessor,
            IContentManager contentManager,
            IUsernameService usernameService)
        {
            this.membershipService        = membershipService;
            this.authenticationService    = authenticationService;
            this.passwordGeneratorService = passwordGeneratorService;
            this.contentManager           = contentManager;
            this.usernameService          = usernameService;

            this.coreSettings = new Lazy <SkautSisCoreSettingsPart>(
                () => workContextAccessor.GetContext().CurrentSite.As <SkautSisCoreSettingsPart>());

            this.userManagementClient = new Lazy <UserManagementSoapClient>(
                () => new UserManagementSoapClient(
                    this.coreSettings.Value.SkautIsWsSoapBinding,
                    this.coreSettings.Value.SkautIsUserManagementServiceAddress));

            this.organizationUnitClient = new Lazy <OrganizationUnitSoapClient>(
                () => new OrganizationUnitSoapClient(
                    this.coreSettings.Value.SkautIsWsSoapBinding,
                    this.coreSettings.Value.SkautIsOrganizationUnitServiceAddress));

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public OpenAuthMembershipServices(IOrchardServices orchardServices,
            IMembershipService membershipService,
            IUsernameService usernameService,
            IPasswordGeneratorService passwordGeneratorService,
            IEnumerable<IOpenAuthUserEventHandler> openAuthUserEventHandlers) {
            _orchardServices = orchardServices;
            _membershipService = membershipService;
            _usernameService = usernameService;
            _passwordGeneratorService = passwordGeneratorService;
            _openAuthUserEventHandlers = openAuthUserEventHandlers;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public OpenAuthMembershipServices(IOrchardServices orchardServices,
                                          IMembershipService membershipService,
                                          IUsernameService usernameService,
                                          IPasswordGeneratorService passwordGeneratorService,
                                          IEnumerable <IOpenAuthUserEventHandler> openAuthUserEventHandlers)
        {
            _orchardServices           = orchardServices;
            _membershipService         = membershipService;
            _usernameService           = usernameService;
            _passwordGeneratorService  = passwordGeneratorService;
            _openAuthUserEventHandlers = openAuthUserEventHandlers;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Example #4
0
 public UserController(IUserService userService, IUsernameService usernameService)
 {
     _userService = userService;
     _usernameService = usernameService;
 }