Hello,
I have an issue with JsonServiceClient, that when I try to send to Back End MQ a list of dto’s that implements IHasBearerToken
, jsonClient doesn’t populate the BearerToken
field.
The dto
[Route(/log, "POST")]
public class ArchivioLogCreate : IReturn<bool>, IHasBearerToken
{
public string Message { get; set; }
public string BearerToken { get; set; }
}
The action
var listRequestsToSend = new ArchivioLogCreate[] { ... }
//send to be mq
//_jsonServiceClient is authenticated with BearerToken
_jsonServiceClient.SendAllOneWay(listRequestsToSend);
Regards,
Alex.