I am working on a custom WPF app that leverages IELib to control calls. I am binding a list of custom InteractionWrapper objects to a list view. Each InteractionWrapper object holds an ICELib Interaction object, and exposes properties of the Interaction through properties like this:
public Interaction WrappedInteraction {
get { return interaction; }
set {
if (interaction != value)
{
InteractionId = value.InteractionId.ToString();
Duration = value.Duration.ToString();
RemoteName = value.RemoteName;
State = value.State.ToString();
}
}
}
In my callback handler, InteractionQueue_InteractionChanged, I have the following code to update the InteractionWrapper object with new data that is sent in the callback:
wrapper.WrappedInteraction = interaction
In theory, this should update the properties in the wrapper and update the bound list view item. When I hang up the call, however, the State still shows as connected, and if I wait for about a minute, I receive the following error:
The requested object or attribute is not being watched. Name: Eic_State
Does anyone know what causes this?