Ejemplo n.º 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);
                }
            }
        }
Ejemplo n.º 2
0
 public DivisionManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
Ejemplo n.º 3
0
 public TribeManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
Ejemplo n.º 4
0
 public VotedGroupManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
Ejemplo n.º 5
0
 public MemberManager(ILdapConnection connection, LdapConfig config, IDivisionManager divisionManager)
 {
     this._connection      = connection;
     this._config          = config;
     this._divisionManager = divisionManager;
 }
Ejemplo n.º 6
0
 public LdapUserStore(ILdapConnection connection, LdapConfig config, ILogger <LdapUserStore> logger)
 {
     this._connection = connection;
     this._config     = config;
     this._logger     = logger;
 }