NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Users are not prevented from changing the configuration after initialization

Open WojcikMike opened this issue 4 years ago • 0 comments

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.

WojcikMike avatar Apr 06 '21 10:04 WojcikMike