/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="catchAllConfig">The configuration.</param>
        /// <param name="addressBook">The address book to perform lookups.</param>
        public CatchAllAgent(CatchAllConfig catchAllConfig, AddressBook addressBook)
        {
            // Save the address book and configuration
            _addressBook = addressBook;
            _catchAllConfig = catchAllConfig;

            // Register an OnRcptCommand event handler
            OnRcptCommand += RcptToHandler;
        }
Example #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="catchAllConfig">The configuration.</param>
        /// <param name="addressBook">The address book to perform lookups.</param>
        public CatchAllAgent(CatchAllConfig catchAllConfig, AddressBook addressBook)
        {
            // Save the address book and configuration
            _addressBook    = addressBook;
            _catchAllConfig = catchAllConfig;

            // Register an OnRcptCommand event handler
            OnRcptCommand += RcptToHandler;
        }