NServiceBus
NServiceBus copied to clipboard
Users are not prevented from changing the configuration after initialization
In NSB v8 current seam exposes transport configuration as a POCO object which is managed by the users and passed to UseTransport method e.g.
var transport = new SqlServerTransport("connection-string");
transport.DefaultSchema = "nsb";
endpointConfiguration.UseTransport(transport);
...
var endpoint = Endpoint.Create(endpointConfiguration);
transport.DefaultSchema = "not-nsb"; //behavior is not determined
The API does not prevent making changes to the configuration object after the endpoint has been initialized. The behavior in such a scenario depends on the transport implementation and could potentially influence runtime behavior.