You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public void Acknowledge(bool markAccepted = true)
{
- var sentTicket = (ITicketCancel)_ticketCancelSender.GetSentTicket(TicketId);
if (sentTicket == null)
{
throw new InvalidOperationException("Missing ticket in cache");
}
Acknowledge(markAccepted, sentTicket.BookmakerId, Reason.Code, Reason.Message);
}
This code assumes that the cast to ITicketCancel is legal, but in this case the method is returning an instance of Sportradar.MTS.SDK.Entities.Internal.TicketImpl.Ticket, which doesn't implement that interface.
The text was updated successfully, but these errors were encountered:
We are getting a
System.InvalidCastException
while using the SDK:It happens at this location:
public void Acknowledge(bool markAccepted = true) { - var sentTicket = (ITicketCancel)_ticketCancelSender.GetSentTicket(TicketId); if (sentTicket == null) { throw new InvalidOperationException("Missing ticket in cache"); } Acknowledge(markAccepted, sentTicket.BookmakerId, Reason.Code, Reason.Message); }
This code assumes that the cast to
ITicketCancel
is legal, but in this case the method is returning an instance ofSportradar.MTS.SDK.Entities.Internal.TicketImpl.Ticket
, which doesn't implement that interface.The text was updated successfully, but these errors were encountered: