/// <summary> /// Constructor /// </summary> /// <param name="listenerIdentity">A listener identity, defining this listener</param> public Listener(ListenerIdentity listenerIdentity) { this.pListenerIdentity = listenerIdentity; pExceptionThrownHandler = new AsyncExceptionThrownHandler(EmailTransportExceptionEvent_ExceptionThrown); if (listenerIdentity.ServiceType != null) { CreateHost(listenerIdentity.ServiceType); } else { CreateHost(typeof(ServiceImplementation)); } }
/// <summary> /// Default constructor /// </summary> public Listener() { pExceptionThrownHandler = new AsyncExceptionThrownHandler(EmailTransportExceptionEvent_ExceptionThrown); CreateHost(typeof(ServiceImplementation)); }