Skip to content

Fix bug when NullSender is used with Async Queue - #155

Merged
Sergey Kanzhelev (SergeyKanzhelev) merged 1 commit into
microsoft:developfrom
CatalystCode:null-sender-async
Mar 18, 2019
Merged

Sergey Kanzhelev (SergeyKanzhelev) merged 1 commit into
microsoft:developfrom
CatalystCode:null-sender-async

Conversation

@c-w

Copy link
Copy Markdown
Contributor

Currently the NullSender crashes when used in conjunction with AsynchronousQueue since the AsynchronousQueue relies on some methods that are not part of the SenderBase interface.

This limitation leads to unexpected behavior when for example using the NullSender to avoid sending telemetry in an application when the instrumentation key isn't configured in the environment.

This change makes the NullSender work with the AsynchronousQueue so that the class can be used with both queues included in the SDK.

Currently the NullSender crashes when used in conjunction with
AsynchronousQueue since the AsynchronousQueue relies on some methods
that are not part of the SenderBase interface.

This limitation leads to unexpected behavior when for example using the
NullSender to avoid sending telemetry in an application when the
instrumentation key isn't configured in the environment.

This change makes the NullSender work with the AsynchronousQueue so that
the class can be used with both queues included in the SDK.
@SergeyKanzhelev
Sergey Kanzhelev (SergeyKanzhelev) merged commit d7b5fdf into microsoft:develop Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants