예제 #1
0
        void Dispose(bool disposing)
        {
            // Check state flags
            if (disposing && !_isDisposed)
            {
                // Ensure we cleanup connection resources
                if (_session != null)
                {
                    _session.Dispose();
                }

                _session = null;

                // Notify GC to ignore
                GC.SuppressFinalize(this);
            }

            _isDisposed = true;
        }
예제 #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="session">The session to use for the manager</param>
 public LDAPSchemaManager(ILDAPSession session)
 {
     _session = session;
 }
예제 #3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="options"></param>
 /// <param name="session">The session to use for the manager</param>
 /// <param name="log">The logger to use for tracing information</param>
 public LDAPUserManager(IOptions <LDAPManagerConfiguration> options, ILDAPSession session, ILogger <LDAPUserManager> log)
 {
     _options = options.Value;
     _session = session;
     _log     = log;
 }