コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
ファイル: UserController.cs プロジェクト: AMerkuri/MCNotifier
 public UserController(IUserService userService, IUsernameService usernameService)
 {
     _userService = userService;
     _usernameService = usernameService;
 }