pardahlman / RawRabbit

A modern .NET framework for communication over RabbitMq
MIT License
747 stars 144 forks source link

RawRabbitFactory not in RawRabbit NuGet but in RawRabbit.Extensions #420

Closed elonmallin closed 4 years ago

elonmallin commented 4 years ago

According to this: https://github.com/pardahlman/RawRabbit/blob/2.0/docs/getting-started/installation.md RawRabbitFactory should be available when you install the RawRabbit NuGet but it seems like it isn't. It's available after you install RawRabbit.Extensions?

F12 on RawRabbitFactory in Visual Studio gives you this:

namespace RawRabbit.Extensions.Client
{
    public class RawRabbitFactory
    {
        public RawRabbitFactory();

        public static Disposable.IBusClient<TMessageContext> Create<TMessageContext>(Action<IServiceCollection> custom = null) where TMessageContext : IMessageContext;
        public static Disposable.IBusClient Create(Action<IServiceCollection> custom = null);
        [Obsolete("Use 'Create' methods instead.")]
        public static IBusClient<MessageContext> GetExtendableClient(Action<IServiceCollection> custom = null);
    }
}
elonmallin commented 4 years ago

Nvm, I had installed v1. Didn't realise v2 was still a pre-release.