1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 [assembly:System.Reflection.AssemblyVersionAttribute("4.0.0.0")] 6 [assembly:System.CLSCompliantAttribute(true)] 7 [assembly:System.Diagnostics.DebuggableAttribute((System.Diagnostics.DebuggableAttribute.DebuggingModes)(2))] 8 [assembly:System.Reflection.AssemblyCompanyAttribute("Mono development team")] 9 [assembly:System.Reflection.AssemblyCopyrightAttribute("(c) Various Mono authors")] 10 [assembly:System.Reflection.AssemblyDefaultAliasAttribute("System.Runtime.Caching.dll")] 11 [assembly:System.Reflection.AssemblyDescriptionAttribute("System.Runtime.Caching.dll")] 12 [assembly:System.Reflection.AssemblyFileVersionAttribute("4.7.2558.0")] 13 [assembly:System.Reflection.AssemblyInformationalVersionAttribute("4.7.2558.0")] 14 [assembly:System.Reflection.AssemblyProductAttribute("Mono Common Language Infrastructure")] 15 [assembly:System.Reflection.AssemblyTitleAttribute("System.Runtime.Caching.dll")] 16 [assembly:System.Resources.NeutralResourcesLanguageAttribute("en-US")] 17 [assembly:System.Resources.SatelliteContractVersionAttribute("4.0.0.0")] 18 [assembly:System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)] 19 [assembly:System.Runtime.CompilerServices.ReferenceAssemblyAttribute] 20 [assembly:System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows=true)] 21 [assembly:System.Runtime.InteropServices.ComVisibleAttribute(false)] 22 [assembly:System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute((System.Runtime.InteropServices.DllImportSearchPath)(2050))] 23 [assembly:System.Security.AllowPartiallyTrustedCallersAttribute] 24 [assembly:System.Security.SecurityRulesAttribute((System.Security.SecurityRuleSet)(2), SkipVerificationInFullTrust=true)] 25 [assembly:System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.RequestMinimum, Execution=true)] 26 namespace System.Runtime.Caching 27 { 28 public abstract partial class CacheEntryChangeMonitor : System.Runtime.Caching.ChangeMonitor 29 { CacheEntryChangeMonitor()30 protected CacheEntryChangeMonitor() { } 31 public abstract System.Collections.ObjectModel.ReadOnlyCollection<string> CacheKeys { get; } 32 public abstract System.DateTimeOffset LastModified { get; } 33 public abstract string RegionName { get; } 34 } 35 public partial class CacheEntryRemovedArguments 36 { CacheEntryRemovedArguments(System.Runtime.Caching.ObjectCache source, System.Runtime.Caching.CacheEntryRemovedReason reason, System.Runtime.Caching.CacheItem cacheItem)37 public CacheEntryRemovedArguments(System.Runtime.Caching.ObjectCache source, System.Runtime.Caching.CacheEntryRemovedReason reason, System.Runtime.Caching.CacheItem cacheItem) { } 38 public System.Runtime.Caching.CacheItem CacheItem { get { throw null; } } 39 public System.Runtime.Caching.CacheEntryRemovedReason RemovedReason { get { throw null; } } 40 public System.Runtime.Caching.ObjectCache Source { get { throw null; } } 41 } CacheEntryRemovedCallback(System.Runtime.Caching.CacheEntryRemovedArguments arguments)42 public delegate void CacheEntryRemovedCallback(System.Runtime.Caching.CacheEntryRemovedArguments arguments); 43 public enum CacheEntryRemovedReason 44 { 45 CacheSpecificEviction = 4, 46 ChangeMonitorChanged = 3, 47 Evicted = 2, 48 Expired = 1, 49 Removed = 0, 50 } 51 public partial class CacheEntryUpdateArguments 52 { CacheEntryUpdateArguments(System.Runtime.Caching.ObjectCache source, System.Runtime.Caching.CacheEntryRemovedReason reason, string key, string regionName)53 public CacheEntryUpdateArguments(System.Runtime.Caching.ObjectCache source, System.Runtime.Caching.CacheEntryRemovedReason reason, string key, string regionName) { } 54 public string Key { get { throw null; } } 55 public string RegionName { get { throw null; } } 56 public System.Runtime.Caching.CacheEntryRemovedReason RemovedReason { get { throw null; } } 57 public System.Runtime.Caching.ObjectCache Source { get { throw null; } } 58 public System.Runtime.Caching.CacheItem UpdatedCacheItem { get { throw null; } set { } } 59 public System.Runtime.Caching.CacheItemPolicy UpdatedCacheItemPolicy { get { throw null; } set { } } 60 } CacheEntryUpdateCallback(System.Runtime.Caching.CacheEntryUpdateArguments arguments)61 public delegate void CacheEntryUpdateCallback(System.Runtime.Caching.CacheEntryUpdateArguments arguments); 62 public partial class CacheItem 63 { CacheItem(string key)64 public CacheItem(string key) { } CacheItem(string key, object value)65 public CacheItem(string key, object value) { } CacheItem(string key, object value, string regionName)66 public CacheItem(string key, object value, string regionName) { } 67 public string Key { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } 68 public string RegionName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } 69 public object Value { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } 70 } 71 public partial class CacheItemPolicy 72 { CacheItemPolicy()73 public CacheItemPolicy() { } 74 public System.DateTimeOffset AbsoluteExpiration { get { throw null; } set { } } 75 public System.Collections.ObjectModel.Collection<System.Runtime.Caching.ChangeMonitor> ChangeMonitors { get { throw null; } } 76 public System.Runtime.Caching.CacheItemPriority Priority { get { throw null; } set { } } 77 public System.Runtime.Caching.CacheEntryRemovedCallback RemovedCallback { get { throw null; } set { } } 78 public System.TimeSpan SlidingExpiration { get { throw null; } set { } } 79 public System.Runtime.Caching.CacheEntryUpdateCallback UpdateCallback { get { throw null; } set { } } 80 } 81 public enum CacheItemPriority 82 { 83 Default = 0, 84 NotRemovable = 1, 85 } 86 public abstract partial class ChangeMonitor : System.IDisposable 87 { ChangeMonitor()88 protected ChangeMonitor() { } 89 public bool HasChanged { get { throw null; } } 90 public bool IsDisposed { get { throw null; } } 91 public abstract string UniqueId { get; } Dispose()92 public void Dispose() { } Dispose(bool disposing)93 protected abstract void Dispose(bool disposing); InitializationComplete()94 protected void InitializationComplete() { } NotifyOnChanged(System.Runtime.Caching.OnChangedCallback onChangedCallback)95 public void NotifyOnChanged(System.Runtime.Caching.OnChangedCallback onChangedCallback) { } OnChanged(object state)96 protected void OnChanged(object state) { } 97 } 98 [System.FlagsAttribute] 99 public enum DefaultCacheCapabilities 100 { 101 AbsoluteExpirations = 8, 102 CacheEntryChangeMonitors = 4, 103 CacheEntryRemovedCallback = 64, 104 CacheEntryUpdateCallback = 32, 105 CacheRegions = 128, 106 InMemoryProvider = 1, 107 None = 0, 108 OutOfProcessProvider = 2, 109 SlidingExpirations = 16, 110 } 111 public abstract partial class FileChangeMonitor : System.Runtime.Caching.ChangeMonitor 112 { FileChangeMonitor()113 protected FileChangeMonitor() { } 114 public abstract System.Collections.ObjectModel.ReadOnlyCollection<string> FilePaths { get; } 115 public abstract System.DateTimeOffset LastModified { get; } 116 } 117 public sealed partial class HostFileChangeMonitor : System.Runtime.Caching.FileChangeMonitor 118 { HostFileChangeMonitor(System.Collections.Generic.IList<string> filePaths)119 public HostFileChangeMonitor(System.Collections.Generic.IList<string> filePaths) { } 120 public override System.Collections.ObjectModel.ReadOnlyCollection<string> FilePaths { get { throw null; } } 121 public override System.DateTimeOffset LastModified { get { throw null; } } 122 public override string UniqueId { get { throw null; } } Dispose(bool disposing)123 protected override void Dispose(bool disposing) { } 124 } 125 public partial class MemoryCache : System.Runtime.Caching.ObjectCache, System.Collections.IEnumerable, System.IDisposable 126 { MemoryCache(string name, System.Collections.Specialized.NameValueCollection config=null)127 public MemoryCache(string name, System.Collections.Specialized.NameValueCollection config=null) { } MemoryCache(string name, System.Collections.Specialized.NameValueCollection config, bool ignoreConfigSection)128 public MemoryCache(string name, System.Collections.Specialized.NameValueCollection config, bool ignoreConfigSection) { } 129 public long CacheMemoryLimit { get { throw null; } } 130 public static System.Runtime.Caching.MemoryCache Default { get { throw null; } } 131 public override System.Runtime.Caching.DefaultCacheCapabilities DefaultCacheCapabilities { get { throw null; } } 132 public override object this[string key] { get { throw null; } set { } } 133 public override string Name { get { throw null; } } 134 public long PhysicalMemoryLimit { get { throw null; } } 135 public System.TimeSpan PollingInterval { get { throw null; } } Add(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy)136 public override bool Add(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy) { throw null; } AddOrGetExisting(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy)137 public override System.Runtime.Caching.CacheItem AddOrGetExisting(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy) { throw null; } AddOrGetExisting(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null)138 public override object AddOrGetExisting(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null) { throw null; } AddOrGetExisting(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null)139 public override object AddOrGetExisting(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null) { throw null; } Contains(string key, string regionName=null)140 public override bool Contains(string key, string regionName=null) { throw null; } CreateCacheEntryChangeMonitor(System.Collections.Generic.IEnumerable<string> keys, string regionName=null)141 public override System.Runtime.Caching.CacheEntryChangeMonitor CreateCacheEntryChangeMonitor(System.Collections.Generic.IEnumerable<string> keys, string regionName=null) { throw null; } Dispose()142 public void Dispose() { } Get(string key, string regionName=null)143 public override object Get(string key, string regionName=null) { throw null; } GetCacheItem(string key, string regionName=null)144 public override System.Runtime.Caching.CacheItem GetCacheItem(string key, string regionName=null) { throw null; } GetCount(string regionName=null)145 public override long GetCount(string regionName=null) { throw null; } GetEnumerator()146 protected override System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, object>> GetEnumerator() { throw null; } GetLastSize(string regionName=null)147 public long GetLastSize(string regionName=null) { throw null; } GetValues(System.Collections.Generic.IEnumerable<string> keys, string regionName=null)148 public override System.Collections.Generic.IDictionary<string, object> GetValues(System.Collections.Generic.IEnumerable<string> keys, string regionName=null) { throw null; } Remove(string key, System.Runtime.Caching.CacheEntryRemovedReason reason, string regionName=null)149 public object Remove(string key, System.Runtime.Caching.CacheEntryRemovedReason reason, string regionName=null) { throw null; } Remove(string key, string regionName=null)150 public override object Remove(string key, string regionName=null) { throw null; } Set(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy)151 public override void Set(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy) { } Set(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null)152 public override void Set(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null) { } Set(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null)153 public override void Set(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null) { } System.Collections.IEnumerable.GetEnumerator()154 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } Trim(int percent)155 public long Trim(int percent) { throw null; } 156 } 157 public abstract partial class ObjectCache : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object>>, System.Collections.IEnumerable 158 { 159 public static readonly System.DateTimeOffset InfiniteAbsoluteExpiration; 160 public static readonly System.TimeSpan NoSlidingExpiration; ObjectCache()161 protected ObjectCache() { } 162 public abstract System.Runtime.Caching.DefaultCacheCapabilities DefaultCacheCapabilities { get; } 163 public static System.IServiceProvider Host { [System.Security.SecurityCriticalAttribute][System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Unrestricted=true)]get { throw null; } [System.Security.SecurityCriticalAttribute][System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Unrestricted=true)]set { } } 164 public abstract object this[string key] { get; set; } 165 public abstract string Name { get; } Add(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy)166 public virtual bool Add(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy) { throw null; } Add(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null)167 public virtual bool Add(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null) { throw null; } Add(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null)168 public virtual bool Add(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null) { throw null; } AddOrGetExisting(System.Runtime.Caching.CacheItem value, System.Runtime.Caching.CacheItemPolicy policy)169 public abstract System.Runtime.Caching.CacheItem AddOrGetExisting(System.Runtime.Caching.CacheItem value, System.Runtime.Caching.CacheItemPolicy policy); AddOrGetExisting(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null)170 public abstract object AddOrGetExisting(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null); AddOrGetExisting(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null)171 public abstract object AddOrGetExisting(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null); Contains(string key, string regionName=null)172 public abstract bool Contains(string key, string regionName=null); CreateCacheEntryChangeMonitor(System.Collections.Generic.IEnumerable<string> keys, string regionName=null)173 public abstract System.Runtime.Caching.CacheEntryChangeMonitor CreateCacheEntryChangeMonitor(System.Collections.Generic.IEnumerable<string> keys, string regionName=null); Get(string key, string regionName=null)174 public abstract object Get(string key, string regionName=null); GetCacheItem(string key, string regionName=null)175 public abstract System.Runtime.Caching.CacheItem GetCacheItem(string key, string regionName=null); GetCount(string regionName=null)176 public abstract long GetCount(string regionName=null); GetEnumerator()177 protected abstract System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, object>> GetEnumerator(); GetValues(System.Collections.Generic.IEnumerable<string> keys, string regionName=null)178 public abstract System.Collections.Generic.IDictionary<string, object> GetValues(System.Collections.Generic.IEnumerable<string> keys, string regionName=null); GetValues(string regionName, params string[] keys)179 public virtual System.Collections.Generic.IDictionary<string, object> GetValues(string regionName, params string[] keys) { throw null; } Remove(string key, string regionName=null)180 public abstract object Remove(string key, string regionName=null); Set(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy)181 public abstract void Set(System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy); Set(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null)182 public abstract void Set(string key, object value, System.DateTimeOffset absoluteExpiration, string regionName=null); Set(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null)183 public abstract void Set(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName=null); GetEnumerator()184 System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, object>> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.GetEnumerator() { throw null; } System.Collections.IEnumerable.GetEnumerator()185 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } 186 } OnChangedCallback(object state)187 public delegate void OnChangedCallback(object state); 188 public sealed partial class SqlChangeMonitor : System.Runtime.Caching.ChangeMonitor 189 { SqlChangeMonitor(System.Data.SqlClient.SqlDependency dependency)190 public SqlChangeMonitor(System.Data.SqlClient.SqlDependency dependency) { } 191 public override string UniqueId { get { throw null; } } Dispose(bool disposing)192 protected override void Dispose(bool disposing) { } 193 } 194 } 195 namespace System.Runtime.Caching.Configuration 196 { 197 public sealed partial class CachingSectionGroup : System.Configuration.ConfigurationSectionGroup 198 { CachingSectionGroup()199 public CachingSectionGroup() { } 200 [System.Configuration.ConfigurationPropertyAttribute("memoryCache")] 201 public System.Runtime.Caching.Configuration.MemoryCacheSection MemoryCaches { get { throw null; } } 202 } 203 public sealed partial class MemoryCacheElement : System.Configuration.ConfigurationElement 204 { MemoryCacheElement(string name)205 public MemoryCacheElement(string name) { } 206 [System.Configuration.ConfigurationPropertyAttribute("cacheMemoryLimitMegabytes", DefaultValue=0)] 207 [System.Configuration.IntegerValidatorAttribute(MinValue=0)] 208 public int CacheMemoryLimitMegabytes { get { throw null; } set { } } 209 [System.ComponentModel.TypeConverterAttribute(typeof(System.Configuration.WhiteSpaceTrimStringConverter))] 210 [System.Configuration.ConfigurationPropertyAttribute("name", DefaultValue="", IsRequired=true, IsKey=true)] 211 [System.Configuration.StringValidatorAttribute(MinLength=1)] 212 public string Name { get { throw null; } set { } } 213 [System.Configuration.ConfigurationPropertyAttribute("physicalMemoryLimitPercentage", DefaultValue=0)] 214 [System.Configuration.IntegerValidatorAttribute(MinValue=0, MaxValue=100)] 215 public int PhysicalMemoryLimitPercentage { get { throw null; } set { } } 216 [System.ComponentModel.TypeConverterAttribute(typeof(System.Configuration.InfiniteTimeSpanConverter))] 217 [System.Configuration.ConfigurationPropertyAttribute("pollingInterval", DefaultValue="00:02:00")] 218 public System.TimeSpan PollingInterval { get { throw null; } set { } } 219 protected override System.Configuration.ConfigurationPropertyCollection Properties { get { throw null; } } 220 } 221 public sealed partial class MemoryCacheSection : System.Configuration.ConfigurationSection 222 { MemoryCacheSection()223 public MemoryCacheSection() { } 224 [System.Configuration.ConfigurationPropertyAttribute("namedCaches")] 225 public System.Runtime.Caching.Configuration.MemoryCacheSettingsCollection NamedCaches { get { throw null; } } 226 protected override System.Configuration.ConfigurationPropertyCollection Properties { get { throw null; } } 227 } 228 [System.Configuration.ConfigurationCollectionAttribute(typeof(System.Runtime.Caching.Configuration.MemoryCacheElement), CollectionType=(System.Configuration.ConfigurationElementCollectionType)(1))] 229 public sealed partial class MemoryCacheSettingsCollection : System.Configuration.ConfigurationElementCollection 230 { MemoryCacheSettingsCollection()231 public MemoryCacheSettingsCollection() { } 232 public override System.Configuration.ConfigurationElementCollectionType CollectionType { get { throw null; } } 233 public System.Runtime.Caching.Configuration.MemoryCacheElement this[int index] { get { throw null; } set { } } 234 public new System.Runtime.Caching.Configuration.MemoryCacheElement this[string key] { get { throw null; } } 235 protected override System.Configuration.ConfigurationPropertyCollection Properties { get { throw null; } } Add(System.Runtime.Caching.Configuration.MemoryCacheElement cache)236 public void Add(System.Runtime.Caching.Configuration.MemoryCacheElement cache) { } Clear()237 public void Clear() { } CreateNewElement()238 protected override System.Configuration.ConfigurationElement CreateNewElement() { throw null; } CreateNewElement(string elementName)239 protected override System.Configuration.ConfigurationElement CreateNewElement(string elementName) { throw null; } GetElementKey(System.Configuration.ConfigurationElement element)240 protected override object GetElementKey(System.Configuration.ConfigurationElement element) { throw null; } IndexOf(System.Runtime.Caching.Configuration.MemoryCacheElement cache)241 public int IndexOf(System.Runtime.Caching.Configuration.MemoryCacheElement cache) { throw null; } Remove(System.Runtime.Caching.Configuration.MemoryCacheElement cache)242 public void Remove(System.Runtime.Caching.Configuration.MemoryCacheElement cache) { } RemoveAt(int index)243 public void RemoveAt(int index) { } 244 } 245 } 246 namespace System.Runtime.Caching.Hosting 247 { 248 public partial interface IApplicationIdentifier 249 { GetApplicationId()250 string GetApplicationId(); 251 } 252 public partial interface IFileChangeNotificationSystem 253 { StartMonitoring(string filePath, System.Runtime.Caching.OnChangedCallback onChangedCallback, out object state, out System.DateTimeOffset lastWriteTime, out long fileSize)254 void StartMonitoring(string filePath, System.Runtime.Caching.OnChangedCallback onChangedCallback, out object state, out System.DateTimeOffset lastWriteTime, out long fileSize); StopMonitoring(string filePath, object state)255 void StopMonitoring(string filePath, object state); 256 } 257 public partial interface IMemoryCacheManager 258 { ReleaseCache(System.Runtime.Caching.MemoryCache cache)259 void ReleaseCache(System.Runtime.Caching.MemoryCache cache); UpdateCacheSize(long size, System.Runtime.Caching.MemoryCache cache)260 void UpdateCacheSize(long size, System.Runtime.Caching.MemoryCache cache); 261 } 262 } 263