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; }
/// <summary> /// Default constructor /// </summary> /// <param name="session">The session to use for the manager</param> public LDAPSchemaManager(ILDAPSession session) { _session = session; }
/// <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; }