Пример #1
0
 /// <summary>
 ///  Instantites the <see cref="BitmapMemoryCacheKey"/>.
 /// </summary>
 public BitmapMemoryCacheKey(
     string sourceString,
     ResizeOptions resizeOptions,
     bool autoRotated,
     ImageDecodeOptions imageDecodeOptions,
     ICacheKey postprocessorCacheKey,
     string postprocessorName,
     object callerContext)
 {
     _sourceString          = Preconditions.CheckNotNull(sourceString);
     _resizeOptions         = resizeOptions;
     _autoRotated           = autoRotated;
     _imageDecodeOptions    = imageDecodeOptions;
     _postprocessorCacheKey = postprocessorCacheKey;
     _postprocessorName     = postprocessorName;
     _hash = HashCodeUtil.HashCode(
         sourceString.GetHashCode(),
         (resizeOptions != null) ? resizeOptions.GetHashCode() : 0,
         autoRotated ? true.GetHashCode() : false.GetHashCode(),
         _imageDecodeOptions,
         _postprocessorCacheKey,
         postprocessorName);
     _callerContext = callerContext;
     _cacheTime     = SystemClock.UptimeMillis;
 }