Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / ObjectLayer / ObjectItemCachedAssemblyLoader.cs / 1305376 / ObjectItemCachedAssemblyLoader.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Reflection;
using System.Data.Entity;
namespace System.Data.Metadata.Edm
{
internal sealed class ObjectItemCachedAssemblyLoader : ObjectItemAssemblyLoader
{
private new ImmutableAssemblyCacheEntry CacheEntry { get { return (ImmutableAssemblyCacheEntry)base.CacheEntry; } }
internal ObjectItemCachedAssemblyLoader(Assembly assembly, ImmutableAssemblyCacheEntry cacheEntry, ObjectItemLoadingSessionData sessionData)
: base(assembly, cacheEntry, sessionData)
{
}
protected override void AddToAssembliesLoaded()
{
// wasn't loaded, was pulled from cache instead
// so don't load it
}
protected override void LoadTypesFromAssembly()
{
foreach (EdmType type in CacheEntry.TypesInAssembly)
{
if (!SessionData.TypesInLoading.ContainsKey(type.Identity))
{
SessionData.TypesInLoading.Add(type.Identity, type);
}
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Reflection;
using System.Data.Entity;
namespace System.Data.Metadata.Edm
{
internal sealed class ObjectItemCachedAssemblyLoader : ObjectItemAssemblyLoader
{
private new ImmutableAssemblyCacheEntry CacheEntry { get { return (ImmutableAssemblyCacheEntry)base.CacheEntry; } }
internal ObjectItemCachedAssemblyLoader(Assembly assembly, ImmutableAssemblyCacheEntry cacheEntry, ObjectItemLoadingSessionData sessionData)
: base(assembly, cacheEntry, sessionData)
{
}
protected override void AddToAssembliesLoaded()
{
// wasn't loaded, was pulled from cache instead
// so don't load it
}
protected override void LoadTypesFromAssembly()
{
foreach (EdmType type in CacheEntry.TypesInAssembly)
{
if (!SessionData.TypesInLoading.ContainsKey(type.Identity))
{
SessionData.TypesInLoading.Add(type.Identity, type);
}
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StatusBarPanelClickEvent.cs
- StrictAndMessageFilter.cs
- CredentialCache.cs
- MeasureData.cs
- TreeViewAutomationPeer.cs
- Ops.cs
- CategoryGridEntry.cs
- RequestQueryParser.cs
- XmlSchemaValidator.cs
- XsltContext.cs
- Part.cs
- ObjectParameterCollection.cs
- CodeAccessSecurityEngine.cs
- ObjectContext.cs
- KeyFrames.cs
- DrawingAttributes.cs
- ResolvedKeyFrameEntry.cs
- AddInDeploymentState.cs
- UserControl.cs
- initElementDictionary.cs
- HostSecurityManager.cs
- PageContentCollection.cs
- IndexingContentUnit.cs
- Hash.cs
- ThreadStaticAttribute.cs
- PageSettings.cs
- ResXResourceWriter.cs
- DataGridViewTextBoxEditingControl.cs
- WebPartActionVerb.cs
- AssemblyBuilder.cs
- CodeGotoStatement.cs
- CompositeTypefaceMetrics.cs
- Delegate.cs
- ExpressionHelper.cs
- SiteMapNode.cs
- ResolveMatchesMessageCD1.cs
- FileUpload.cs
- Window.cs
- SqlGenericUtil.cs
- XPathDocument.cs
- ResourceManager.cs
- Certificate.cs
- ArcSegment.cs
- NamedPipeTransportManager.cs
- SqlUserDefinedTypeAttribute.cs
- BuildProviderUtils.cs
- Parsers.cs
- MenuItem.cs
- Event.cs
- DataServiceHostFactory.cs
- XPathEmptyIterator.cs
- BroadcastEventHelper.cs
- QueryPageSettingsEventArgs.cs
- MetadataCollection.cs
- Lasso.cs
- AnimationClock.cs
- Viewport3DAutomationPeer.cs
- WebPartEventArgs.cs
- XmlDataImplementation.cs
- EntityTransaction.cs
- AstNode.cs
- Pool.cs
- QueryConverter.cs
- ServicesUtilities.cs
- OperandQuery.cs
- ContentPresenter.cs
- RectangleConverter.cs
- UpdateInfo.cs
- SplitContainer.cs
- EarlyBoundInfo.cs
- XmlValidatingReader.cs
- XPathExpr.cs
- ObjectListFieldCollection.cs
- GatewayDefinition.cs
- ButtonPopupAdapter.cs
- SiteMapNodeItem.cs
- ServiceModelSectionGroup.cs
- KeyboardEventArgs.cs
- BitmapCacheBrush.cs
- DataBindEngine.cs
- BuildProvidersCompiler.cs
- Menu.cs
- ScriptingProfileServiceSection.cs
- Scheduler.cs
- JsonMessageEncoderFactory.cs
- SubclassTypeValidator.cs
- InfiniteIntConverter.cs
- DBSqlParserTableCollection.cs
- GridViewEditEventArgs.cs
- DataGridColumnCollection.cs
- contentDescriptor.cs
- FixedDocument.cs
- RealizationDrawingContextWalker.cs
- AppDomainUnloadedException.cs
- serverconfig.cs
- RegionInfo.cs
- SafeThreadHandle.cs
- BuildProviderInstallComponent.cs
- ExpressionParser.cs
- BinaryKeyIdentifierClause.cs