Why does XrmServiceContext return empty set, when there is no activity for around 6 hours?
public ServiceAppointment GetServiceActivity(Guid serviceActivityGuid)
{
return _xrmServiceContext.ServiceAppointmentSet.FirstOrDefault(x => x.Id == serviceActivityGuid);
}
If I start my application, and execute the method above, it will return good data; however, if I start the application and then wait approximately 6 hours, it will return an empty set.
How can I adjust the authentication timeout? (Please note that my assumption about this being a timeout may not be true).