Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug fix in TelemetryConfiguration + ConnectionStrings#1230

Merged
TimothyMothra merged 5 commits into
developfrom
tilee/config_bug
Oct 9, 2019
Merged

Bug fix in TelemetryConfiguration + ConnectionStrings#1230
TimothyMothra merged 5 commits into
developfrom
tilee/config_bug

Conversation

@TimothyMothra

@TimothyMothra TimothyMothra commented Oct 1, 2019

Copy link
Copy Markdown

Related to #1221

The Cause
Channels previously held a default endpoint value.
I changed that to read from the TelemetryConfiguration.EndpointContainer.
EndpointContainer now holds the default values unless overwritten by setting a ConnectionString.
In this example, No ConnectionString is in use and the Channel holds a custom Endpoint.
This custom Endpoint is being overwritten by the TelemetryConfiguration.EndpointContainer which is an error.

The fix
I introduced a force parameter.
If a Channel has had it's endpoint set before adding to the Configuration, it will not be overwritten.
However, anytime the ConnectionString is set, the Channel will always be overwritten.

@TimothyMothra TimothyMothra added this to the 2.12 milestone Oct 1, 2019
@TimothyMothra TimothyMothra marked this pull request as ready for review October 8, 2019 20:09
@TimothyMothra TimothyMothra changed the title [WIP] config bug Bug fix in TelemetryConfiguration + ConnectionStrings Oct 8, 2019
@TimothyMothra TimothyMothra merged commit b3d0c6d into develop Oct 9, 2019
@TimothyMothra TimothyMothra deleted the tilee/config_bug branch October 9, 2019 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants