Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Microsoft.Azure.EventHubs 1.0.3 to 4.3.1 #23

Merged
merged 4 commits into from
Mar 26, 2021

Conversation

alastairtree
Copy link
Contributor

Updates the main dependency to the latest version of the event hub SDK.
Without this change the sink will not work on .net5 as the sink throws a silent exception.
v1 of the event hub SDK is 4 years old so probably lots of other improvements, including better support AMQP

Updates the main dependency to the latest version of the event hub SDK. 
Without this change the sink will not work on .net5 as the sink throws a silent exception.
v1 of the event hub SDK is 4 years old so probably lots of other improvements, including better support AMQP
@alastairtree
Copy link
Contributor Author

The build is failing because of the net451 support which mandates the 1.0.3 of the dependency. Perhaps a conditional reference could be used so that it defaults to 4.3.1 if you are on netstandard2.0 ?

@loctanvo
Copy link

We've experienced the same issue, and are interested in this PR. Wondering if you got any feedback from the repo owner?

@alastairtree
Copy link
Contributor Author

No, just what you see here. I forced the upgraded dependency locally by installing the new version of the eventhub sdk in my app and that fixes the issue, while we wait for this upstream fix.

@loctanvo
Copy link

I see. One way to fix this issue could be to specify different dependencies for net451 and netstandard2.0, which I guess you are suggesting?

@nblumhardt , what is your opinion on this? Here is more info on the issue we're facing: Azure/azure-amqp#165

@nblumhardt
Copy link
Contributor

Thanks for the PR! Sorry about the lack of response - I haven't worked on this codebase for quite some time.

I think dropping .NET 4.5 support would make sense at this stage.

@loctanvo
Copy link

@nblumhardt so you think we should remove net451 from target framework? Seems reasonable.

@alastairtree do you have time to push this change? Not sure if I have the permission to edit your branch.

@alastairtree
Copy link
Contributor Author

I have removed 451, and incremented the version to 6.0, and hopefully fixed the build failures

@nblumhardt nblumhardt merged commit 2771b7a into serilog-contrib:dev Mar 26, 2021
@nblumhardt
Copy link
Contributor

Just updated the NuGet.org publishing key - dev build should be up there with this change shortly. Thanks!

@alastairtree alastairtree deleted the patch-1 branch April 7, 2021 18:31
@alastairtree
Copy link
Contributor Author

@nblumhardt I dont think this ever made it to nuget.org? https://www.nuget.org/packages/Serilog.Sinks.AzureEventHub/

@nblumhardt
Copy link
Contributor

@Meyce
Copy link

Meyce commented Dec 3, 2021

@nblumhardt is a release version of the package going to be produced? Its been out as a prerelease package for a while now.

@nblumhardt nblumhardt mentioned this pull request Dec 8, 2021
@nblumhardt
Copy link
Contributor

Queued up #29 - thanks @Meyce

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.

4 participants