System.Net.Cache.SingleItemRequestCache.Store C# (CSharp) Method

Store() private method

The commit operation should happen on the stream closure.
private Store ( string key, long contentLength, System.DateTime expiresUtc, System.DateTime lastModifiedUtc, System.TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata ) : Stream
key string
contentLength long
expiresUtc System.DateTime
lastModifiedUtc System.DateTime
maxStale System.TimeSpan
entryMetadata System.Collections.Specialized.StringCollection
systemMetadata System.Collections.Specialized.StringCollection
return Stream
        internal override Stream Store(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata)
        {
            Stream result;
            if (!TryStore(key, contentLength, expiresUtc, lastModifiedUtc, maxStale, entryMetadata, systemMetadata, out result))
            {
                FileNotFoundException fileNotFoundException = new FileNotFoundException(null, key);
                throw new IOException(SR.GetString(SR.net_cache_retrieve_failure, fileNotFoundException.Message), fileNotFoundException);
            }

            return result;
        }