Beispiel #1
0
        /// <summary>
        /// Initializes the <see cref="Pop3Manager"/> class.
        /// </summary>
        static Pop3Manager()
        {
            Pop3ManagerConfig config = (Pop3ManagerConfig)ConfigurationManager.GetSection("pop3Modules");
            _current = new Pop3Manager(config);

            // Fixed: Remove Handler.Init from constructor !!! _current ==  null
            _current.Init();
        }
Beispiel #2
0
        /// <summary>
        /// Initializes the <see cref="Pop3Manager"/> class.
        /// </summary>
        static Pop3Manager()
        {
            Pop3ManagerConfig config = (Pop3ManagerConfig)ConfigurationManager.GetSection("pop3Modules");

            _current = new Pop3Manager(config);

            // Fixed: Remove Handler.Init from constructor !!! _current ==  null
            _current.Init();
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pop3Manager"/> class.
 /// </summary>
 /// <param name="config">The config.</param>
 private Pop3Manager(Pop3ManagerConfig config)
 {
     Pop3Manager._current = this;
     _config = config;
 }
Beispiel #4
0
        public void Init(Pop3Manager manager)
        {
            _ownerManager = manager;

            OnInit();
        }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pop3Manager"/> class.
 /// </summary>
 /// <param name="config">The config.</param>
 private Pop3Manager(Pop3ManagerConfig config)
 {
     Pop3Manager._current = this;
     _config = config;
 }
Beispiel #6
0
        public void Init(Pop3Manager manager)
        {
            _ownerManager = manager;

            OnInit();
        }