public abstract class APIClient<T>
| ApiStage | ApiStage may be used to test in different development stages, e.g. production, beta, alpha. |
| IgnoreFileSystemCache | Indicates if the local file system cache should be ignored and always pass through to making the call to the Rest API. The option to ignore file system cache can either be set at the API Client level, or on a per request level. Cached responses are only valid for HttpMethod GET calls. To enable cache for anAPI call two things must happen. First, the concrete APIClient needs to enable file system cache by setting .IgnoreFileSystemCache to false. Second the client's LocalStoreDirectory must be set. |
| IgnoreInMemoryCache | Indicates if the local response cache should be ignored and always make the request to the Local File System and then to the Rest API. The default value is true. Which means if an API Client wants to use local cached values, it must be enabled (set to false) within the concrete API Client. The option to ignore in memory cache can either be set at the API Client level, or on a per request level. Cached responses are only valid for HttpMethod GET calls. To enable cache for a API call two things needs to happen. First the concrete APIClient needs to enabled caching response by setting .IgnoreInMemoryCache to false. Second, each response object must enable it by overridding GetCacheValueExpiryTime to a value in the future. |
| LocalStoreDirectory | The directory that BabelFish may use to read and store cached responses. Because APIClient is a generic class, each concret instance of APIClient get's gtheir own static property LocalStoreDirectory. https://stackoverflow.com/questions/3542171/c-sharp-abstract-class-static-field-inheritance |
| Statistics | Keep track of how many times this API Client is called. Will also update the sitewite statistics class. |
| CallAPIAsyncT | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| TryReadFromFileSystemAsync | |
| TryWriteToFileSystemAsyncT |
| DeserializerOptions | Standard json serializer settings intended for use while deserializing json to object model. Will ignore any json values that are null, and instead use the default value of the property. |
| OnLocalStorageDirectoryChange | Gets called when the LocalStorageDirectory is updated or set for the first time. |
| X_API_KEY_NAME | The name (key value) to use in http requests for the x api -key |