RawRabbit icon indicating copy to clipboard operation
RawRabbit copied to clipboard

Support Microsoft.Extension.DependencyInjection for .NET Standard 2.0

Open pardahlman opened this issue 8 years ago • 2 comments

This fix should be similar to what was done in #257

pardahlman avatar Oct 08 '17 14:10 pardahlman

Hi @pardahlman, Any progress with this issue? We need your lib in our brand shiny new .Net Core 2.0 solution ;-)

DotPete avatar Oct 11 '17 06:10 DotPete

Hello @DotPete - thanks for reaching out. #257 is resolved for 1.x of the client with this PR. This issue is for 2.x (now in RC1). You are more than welcome to submit a PR for this issue, or do something like this as a work-around

services
    .AddSingleton<IInstanceFactory>(c => RawRabbitFactory.CreateInstanceFactory(new RawRabbitOptions()))
    .AddTransient<IBusClient>(c => c.GetService<IInstanceFactory>().Create());

pardahlman avatar Oct 11 '17 07:10 pardahlman