[Resolvido] IHelpDeskExtension nulo


#1

Bom dia!
Estou tentando usar o Desk utilizando injeção de dependência:

    private readonly ISender _sender;
    private readonly Settings _settings;
    private readonly IHelpDeskExtension _helpDeskExtension;

    public BaseMessageReceiver(ISender sender, Settings settings, IHelpDeskExtension helpDeskExtension)
    {
        _sender = sender ?? throw new ArgumentNullException(nameof(sender));
        _settings = settings ?? throw new ArgumentNullException(nameof(settings));
        _helpDeskExtension = helpDeskExtension ?? throw new ArgumentNullException(nameof(helpDeskExtension));
    }

Porém, IHelpDeskExtension vem sempre nulo.
O mesmo acontece no caso seguinte:

  private readonly IBucketExtension _bucketExtension;
    private readonly IEventTrackExtension _eventTrackExtension;
    private readonly IHelpDeskExtension _helpDeskExtension;
    //public string conversationId;
    public BaseMessageReceiver(ISender sender, IEventTrackExtension eventTrackExtension, IBucketExtension bucketExtension,
        IHelpDeskExtension helpDeskExtension) : base(sender)
    {
        _bucketExtension = bucketExtension;
        _eventTrackExtension = eventTrackExtension;
        _helpDeskExtension = helpDeskExtension;
    }

Alguém já passou por este problema?


#2

Saudações.
Resolvido o problema. Na verdade eu instanciei a classe HelpDeskExtension e funcionou.