I have an api that receives requests to transition states in vault. I get my 3 legged token and am able to make calls to the api and have good access_token,refresh_token, and expores_at. The api is hit every 15min to keep it alive. After about 14 to 16 hours I start receiving error 300 bad auth token. My refresh_token is still good and not expired. I have disabled all iis recycle setting and accourding to Autodesk the token should last 15 days. The error is thrown when calling the WebServiceManager. Any suggestions would be appreciated.
So, it appears there is a property "CacheConnections" in the connectionManager that needs set to false using Reflections.
public static bool IfPropertyExistsSetIt(object instance, string propertyName, object value)
{
var prop = instance.GetType().GetProperty(propertyName);
if (prop != null)
{
prop.SetValue(instance, value);
return true;
}
return false;
}