Coder Social home page Coder Social logo

Comments (9)

liven-maksim-infotecs avatar liven-maksim-infotecs commented on July 30, 2024

I've just given it a try with RMQ version 3.13.3 and behaviour is the same.

from easynetq.

Pliner avatar Pliner commented on July 30, 2024

Hi @liven-maksim-infotecs,

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.

liven-maksim-infotecs avatar liven-maksim-infotecs commented on July 30, 2024

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.

image

from easynetq.

liven-maksim-infotecs avatar liven-maksim-infotecs commented on July 30, 2024

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.

zidad avatar zidad commented on July 30, 2024

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.

liven-maksim-infotecs avatar liven-maksim-infotecs commented on July 30, 2024

so it can be customized by the user

But if user has already registred config, SetDefaultProperties() will never be called

from easynetq.

MaxLevs avatar MaxLevs commented on July 30, 2024

Should issue be opened again?

from easynetq.

zidad avatar zidad commented on July 30, 2024

That would be fine by me

from easynetq.

MaxLevs avatar MaxLevs commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.