예제 #1
0
        public async Task LoadChildren(ILdapConnection connection, CancellationToken cancellationToken = default)
        {
            var entries = await connection.Search <VoteEntry>(this.Dn, null,
                                                              LdapObjectTypes.VotedEntry, LdapConnection.SCOPE_ONE, cancellationToken);

            foreach (var voteEntry in entries)
            {
                if (voteEntry.Active)
                {
                    this.ActiveVoteEntries.Add(voteEntry);
                }
                else
                {
                    this.InactiveVoteEntries.Add(voteEntry);
                }
            }
        }
예제 #2
0
 public DivisionManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
예제 #3
0
 public TribeManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
 public VotedGroupManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
예제 #5
0
 public MemberManager(ILdapConnection connection, LdapConfig config, IDivisionManager divisionManager)
 {
     this._connection      = connection;
     this._config          = config;
     this._divisionManager = divisionManager;
 }
예제 #6
0
 public LdapUserStore(ILdapConnection connection, LdapConfig config, ILogger <LdapUserStore> logger)
 {
     this._connection = connection;
     this._config     = config;
     this._logger     = logger;
 }