Comments (9)
I've just given it a try with RMQ version 3.13.3 and behaviour is the same.
from easynetq.
Without a minimal example which reproduces the issue, we are not able to proceed further. The following works as expected:
docker run -d --name some-rabbit -p 5672:5672 -p 5673:5673 -p 15672:15672 rabbitmq:3.13-management
using EasyNetQ;
using Microsoft.Extensions.DependencyInjection;
var serviceCollection = new ServiceCollection();
serviceCollection.RegisterEasyNetQ("host=localhost", c => c.EnableNewtonsoftJson());
var buildServiceProvider = serviceCollection.BuildServiceProvider();
var bus = buildServiceProvider.GetRequiredService<IAdvancedBus>();
await bus.QueueDeclareAsync("test");
from easynetq.
I've tried to create sample with service and rmq in docker compose but couldn't reproduce this bug.
BUT I could figure out the reason. I found out that configuration factory isn't called because it's registred with TryRegister() and there was singletone registraion in container already.
That was the reason why SetDefaultProperties() wasn't called.
from easynetq.
I've created asp.net project with DI with sample.
https://github.com/liven-maksim-infotecs/easynetq-chrush-test
If you start an application via docker compose, it crushes.
from easynetq.
Many thanks for the example, I will look into it, but it is supposed to not override any existing registrations so it can be customized by the user.
from easynetq.
so it can be customized by the user
But if user has already registred config, SetDefaultProperties() will never be called
from easynetq.
Should issue be opened again?
from easynetq.
That would be fine by me
from easynetq.
That would be fine by me
Do you have the ability to reopen as a member or should we mention someone who has?
from easynetq.
Related Issues (20)
- AlreadyClosedException HOT 1
- Enable CA1852 diagnostic rule HOT 1
- How do I create a multi tenant base queue, pls need some help
- How to work with correlationId in EasyNetQ HOT 3
- No 7.8.1 version in nuget.org HOT 3
- [Question] How to access IServiceResolver in 8.0.0 HOT 1
- EasyNetQ + Google.Protobuf HOT 1
- Only include STJ for net standard 2.0
- Package should be using a license expression
- Pubsub.PublishAsync inconsistent timeout behaviour when server is unreacheable
- Replace proprietary logging with Microsoft logging abstractions
- Replace DI container abstraction and packages with Microsoft abstractions
- System.OperationCanceledException HOT 1
- Central package management
- dispose cannot close the connection to rabbitMq HOT 1
- RabbitMQ.Client 7.0 support
- PublishConfiguration cannot customize WithExchangeType
- Cluster multiple server not working
- How can I send string data?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easynetq.