public LdapMembershipService( IOrchardServices orchardServices, IEncryptionService encryptionService, ILdapServiceFactory ldapServiceFactory, ILdapDirectoryCache ldapDirectoryCache, Lazy<IUserService> userService, IAppConfigurationAccessor appConfigurationAccessor) { this.orchardServices = orchardServices; this.encryptionService = encryptionService; this.ldapServiceFactory = ldapServiceFactory; this.ldapDirectoryCache = ldapDirectoryCache; this.userService = userService; this._appConfigurationAccessor = appConfigurationAccessor; originalMembershipService = new Lazy<IMembershipService>(() => this.orchardServices.WorkContext.Resolve<IEnumerable<IMembershipService>>().Single(x => !(x is LdapMembershipService))); Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
//private IRepository<EmployeePartRecord> _employeeRepository; public ADUpdaterService(IContentManager contentManager, IOrchardServices orchardServices, ICultureManager cultureManager, ICacheManager cacheManager, ILdapServiceFactory ldapServiceFactory, IMediaLibraryService mediaLibraryService, IStorageProvider storageProvider) { _contentManager = contentManager; this.orchardServices = orchardServices; originalMembershipService = new Lazy<IMembershipService>(() => this.orchardServices.WorkContext.Resolve<IEnumerable<IMembershipService>>().Single(x => x is MembershipService)); this.cultureManager = cultureManager; this.cacheManager = cacheManager; this.ldapServiceFactory = ldapServiceFactory; this.mediaLibraryService = mediaLibraryService; this.storageProvider = storageProvider; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }