/// <summary> /// Constructor. /// </summary> /// <param name="method"></param> internal QueryMonitor(APIMethods method) { m_lastUpdate = DateTime.MinValue; m_isFullKeyNeeded = method.HasAttribute <FullKeyAttribute>(); m_methodHeader = method.GetHeader(); m_forceUpdate = true; m_method = method; m_enabled = true; NetworkMonitor.Register(this); }
/// <summary> /// Constructor. /// </summary> /// <param name="method"></param> internal QueryMonitor(APIMethods method) { m_lastUpdate = DateTime.MinValue; m_isFullKeyNeeded = method.HasAttribute <FullKeyAttribute>(); m_methodHeader = (method.HasHeader() ? method.GetHeader() : String.Empty); m_forceUpdate = true; m_method = method; m_enabled = true; bool methodHasAttribute = m_method.HasAttribute <UpdateAttribute>(); m_cacheStyle = (methodHasAttribute ? m_method.GetAttribute <UpdateAttribute>().CacheStyle : CacheStyle.Short); NetworkMonitor.Register(this); }