This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // wrap ASF Stateless Service. Customer would implement this base class instead of StatelessService | |
| public abstract class NServiceBusStatelessService : StatelessService, IProvideEndPointConfiguration | |
| { | |
| //plumbing for starting NSB on Service start | |
| protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners() | |
| { | |
| yield return new ServiceInstanceListener( | |
| createCommunicationListener: | |
| _ => new NServiceBusCommunicationsListener(this), | |
| name: |