NServiceBus: Exception thrown when not using non-XML configuration with Generic host -
i want use nservicebus generic host running subscriber service. subscriber uses no-xml configuration, there no need app.config. problem since don't have app.config, error generic host:
no configuration file found at: c:\my dev\nservicebus2.0.0.1145\samples\pubsub\subscriber2\bin\debug\subscriber2.dll.config
is there way disable default behavior of generic host not search .config file?
looks there no way around except host nsb on own(from host source):
string endpointconfigurationfile = getendpointconfigurationfile(endpointconfigurationtype); if (!file.exists(endpointconfigurationfile)) { throw new invalidoperationexception("no configuration file found at: " + endpointconfigurationfile); }
Comments
Post a Comment