Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlExceptionHelper.cs
- ExceptionUtility.cs
- WCFServiceClientProxyGenerator.cs
- EtwTrace.cs
- FrameworkObject.cs
- SizeFConverter.cs
- BezierSegment.cs
- UseAttributeSetsAction.cs
- errorpatternmatcher.cs
- SymbolMethod.cs
- WindowsToolbarAsMenu.cs
- FileInfo.cs
- _OverlappedAsyncResult.cs
- WindowsFormsHost.cs
- Parser.cs
- VisualCollection.cs
- DetailsViewInsertEventArgs.cs
- StringUtil.cs
- CompositionDesigner.cs
- PropertyTab.cs
- DrawingContextDrawingContextWalker.cs
- CharUnicodeInfo.cs
- RadialGradientBrush.cs
- PixelShader.cs
- TemplateModeChangedEventArgs.cs
- ResourcesChangeInfo.cs
- SimpleBitVector32.cs
- Logging.cs
- GenericUriParser.cs
- RegexTree.cs
- HtmlFormWrapper.cs
- CurrencyManager.cs
- NamespaceQuery.cs
- SplayTreeNode.cs
- ReliableMessagingHelpers.cs
- OnOperation.cs
- MemberJoinTreeNode.cs
- Type.cs
- MenuCommands.cs
- Command.cs
- ArrayList.cs
- StreamGeometry.cs
- Columns.cs
- TraceLog.cs
- DecoderFallbackWithFailureFlag.cs
- PenThreadPool.cs
- ProgressBar.cs
- TableLayoutSettingsTypeConverter.cs
- TextViewElement.cs
- DataListCommandEventArgs.cs
- ConfigurationPermission.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- XmlAttribute.cs
- HelpInfo.cs
- LingerOption.cs
- StylusPointProperties.cs
- ObjectQuery_EntitySqlExtensions.cs
- ConcurrentDictionary.cs
- BulletedListDesigner.cs
- XslTransform.cs
- HtmlTableRowCollection.cs
- FilterQueryOptionExpression.cs
- UserNamePasswordClientCredential.cs
- HyperLinkColumn.cs
- Conditional.cs
- XmlSerializerFormatAttribute.cs
- ExtendedPropertyDescriptor.cs
- LayoutTableCell.cs
- MimeObjectFactory.cs
- ExceptionUtil.cs
- BlockingCollection.cs
- SAPICategories.cs
- BitmapEffectGroup.cs
- PersonalizationAdministration.cs
- RtfControls.cs
- ContentHostHelper.cs
- AsymmetricKeyExchangeFormatter.cs
- DocumentPaginator.cs
- RawAppCommandInputReport.cs
- EntityTypeEmitter.cs
- versioninfo.cs
- JsonWriter.cs
- Point4DConverter.cs
- MessagePropertyFilter.cs
- ClaimSet.cs
- ErrorFormatter.cs
- ProxyWebPartManager.cs
- RawStylusInputReport.cs
- XmlDataDocument.cs
- Internal.cs
- SHA256.cs
- ScriptIgnoreAttribute.cs
- AnonymousIdentificationModule.cs
- OutputScopeManager.cs
- XmlUnspecifiedAttribute.cs
- TreeNodeEventArgs.cs
- HttpCacheVary.cs
- UniqueConstraint.cs
- SimpleTableProvider.cs
- ConstrainedDataObject.cs