Files
mono/mcs/class/referencesource/System.Data.Entity/System/Data/Common/QueryCache/QueryCacheEntry.cs
T
dotnet-bot adf899c629 Adding System.Data..., System.ServiceModel..., and System.Web...
Adding reference source for
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Entity.Design
System.Data.Linq
System.Data.SqlXml
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Activities
System.ServiceModel.Channels
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.WasHosting
System.ServiceModel.Web
System.Web
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Entity
System.Web.Entity.Design
System.Web.Extensions
System.Web.Mobile
System.Web.Routing
System.Web.Services
System.Xml
System.Xml.Linq
2016-05-03 00:07:37 +02:00

67 lines
1.8 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="QueryCacheEntry.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//
// @owner [....]
// @backupOwner [....]
//------------------------------------------------------------------------------
namespace System.Data.Common.QueryCache
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;
using System.Diagnostics;
/// <summary>
/// Represents the abstract base class for all cache entry values in the query cache
/// </summary>
internal class QueryCacheEntry
{
#region Fields
/// <summary>
/// querycachekey for this entry
/// </summary>
readonly private QueryCacheKey _queryCacheKey;
/// <summary>
/// strong reference to the target object
/// </summary>
readonly protected object _target;
#endregion
#region Constructors
/// <summary>
/// cache entry constructor
/// </summary>
/// <param name="queryCacheKey"></param>
/// <param name="target"></param>
internal QueryCacheEntry(QueryCacheKey queryCacheKey, object target)
{
_queryCacheKey = queryCacheKey;
_target = target;
}
#endregion
#region Methods and Properties
/// <summary>
/// The payload of this cache entry.
/// </summary>
internal virtual object GetTarget()
{
return _target;
}
/// <summary>
/// Returns the query cache key
/// </summary>
internal QueryCacheKey QueryCacheKey
{
get { return _queryCacheKey; }
}
#endregion
}
}