4#include <system/date_time.h>
5#include <system/enum.h>
6#include <system/object.h>
7#include <system/shared_ptr.h>
8#include <system/string.h>
9#include <system/timespan.h>
11namespace System {
namespace Net {
namespace Cache {
48 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
50 ASPOSECPP_SHARED_RTTI_INFO_DECL();
127 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
129 ASPOSECPP_SHARED_RTTI_INFO_DECL();
199 static struct __StaticConstructor__
201 __StaticConstructor__();
210struct EnumMetaInfo<
System::Net::Cache::RequestCacheLevel>
212 static const std::array<std::pair<System::Net::Cache::RequestCacheLevel, const char_t*>, 7>& values();
217struct EnumMetaInfo<
System::Net::Cache::HttpRequestCacheLevel>
219 static const std::array<std::pair<System::Net::Cache::HttpRequestCacheLevel, const char_t*>, 9>& values();
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
HTTP cache policy that expresses RFC2616 HTTP caching semantic Objects of this class should only be a...
Definition: request_cache_policy.h:120
HttpRequestCachePolicy(HttpRequestCacheLevel level)
Constructs a new instance.
TimeSpan get_MaxAge() const
Gets the max age permitted for a resource.
HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan maxAge, TimeSpan freshOrStale)
Constructs a new instance.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
HttpRequestCachePolicy(DateTime cacheSyncDate)
Constructs a new instance.
HttpRequestCachePolicy()
Constructs a new instance.
HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan ageOrFreshOrStale)
Constructs a new instance.
HttpRequestCacheLevel get_Level() const
Gets the specified HttpRequestCacheLevel value.
TimeSpan get_MinFresh() const
Gets the min age permitted for a resource.
TimeSpan get_MaxStale() const
Gets the maximum staleness value that is permitted for a resource.
DateTime get_InternalCacheSyncDateUtc() const
Gets the time in the UTC format when resources stored in the cache must be revalidated....
HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan maxAge, TimeSpan freshOrStale, DateTime cacheSyncDate)
Constructs a new instance.
DateTime get_CacheSyncDate() const
Gets the time when resources stored in the cache must be revalidated.
Common request cache policy used for caching of Http, FTP, etc. Objects of this class should only be ...
Definition: request_cache_policy.h:41
RequestCacheLevel get_Level()
Gets the specified RequestCacheLevel value.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
RequestCachePolicy()
Constructs a new instance.
RequestCachePolicy(RequestCacheLevel level)
Construct a new instance with the specified RequestCacheLevel value.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a time interval. This type should be allocated on stack and passed to functions by value o...
Definition: timespan.h:59
HttpRequestCacheLevel
The enum describes cache settings for HTTP.
Definition: request_cache_policy.h:73
@ Refresh
Satisfies a request by using the server or a cache other than the local cache.
@ CacheOrNextCacheOnly
Satisfies a request for a resource either from the local computer's cache or from a remote cache on t...
RequestCacheLevel
The enum describes cache settings applicable for any WebRequest.
Definition: request_cache_policy.h:15
@ NoCacheNoStore
Never satisfies a request by using resources from the cache and does not cache resources.
@ Reload
A resource is always downloaded from the server.
@ Revalidate
Using a resource local copy if the client timestamp is the same as the timestamp of the resource on t...
@ CacheOnly
Satisfies a request for a resource only from the cache. WebException will be thrown when a resource i...
@ CacheIfAvailable
Satisfies a request for a resource from the cache if the resource is available, otherwise sends a req...
@ BypassCache
Satisfies a request by using the server. No entries are taken from the cache.
HttpCacheAgeControl
CacheAgeControl is used to specify preferences with respect of cached item age and freshness.
Definition: request_cache_policy.h:99
@ MaxStale
Content can be taken from the cache after it has expired until the time specified with this value ela...
@ MaxAge
Content can be taken from the cache until it is older than the age specified with this value.
@ MaxAgeAndMinFresh
MaxAge and MinFresh.
@ MinFresh
Content can be taken from the cache if the time remaining before expiration is greater than or equal ...
@ MaxAgeAndMaxStale
MaxAge and MaxStale.
Definition: db_command.h:9
std::enable_if< IsExceptionWrapper< T >::value, constT & >::type Default()
Returns the default-constructed instance of the specified type.
Definition: default.h:16