Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HttpRuntimeCache"></see>
        ///   class.
        /// </summary>
        /// <param name="eventRaiser">
        /// The event raiser.
        /// </param>
        /// <param name="haveLockObject">
        /// The have lock object.
        /// </param>
        /// <param name="treatCacheKey">
        /// The treat Cache Key.
        /// </param>
        public HttpRuntimeCache(
            [NotNull] IRaiseEvent eventRaiser,
            [NotNull] IHaveLockObject haveLockObject,
            [NotNull] ITreatCacheKey treatCacheKey)
        {
            CodeContracts.VerifyNotNull(eventRaiser, "eventRaiser");
            CodeContracts.VerifyNotNull(haveLockObject, "haveLockObject");

            this._eventRaiser    = eventRaiser;
            this._haveLockObject = haveLockObject;
            this._treatCacheKey  = treatCacheKey;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="HttpRuntimeCache"></see>
        ///   class.
        /// </summary>
        /// <param name="eventRaiser">
        /// The event raiser.
        /// </param>
        /// <param name="haveLockObject">
        /// The have lock object.
        /// </param>
        /// <param name="treatCacheKey">
        /// The treat Cache Key.
        /// </param>
        public HttpRuntimeCache(
      [NotNull] IRaiseEvent eventRaiser, 
      [NotNull] IHaveLockObject haveLockObject, 
      [NotNull] ITreatCacheKey treatCacheKey)
        {
            CodeContracts.ArgumentNotNull(eventRaiser, "eventRaiser");
              CodeContracts.ArgumentNotNull(haveLockObject, "haveLockObject");

              this._eventRaiser = eventRaiser;
              this._haveLockObject = haveLockObject;
              this._treatCacheKey = treatCacheKey;
        }