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
- CqlGenerator.cs
- SvcMapFileLoader.cs
- FormsAuthenticationConfiguration.cs
- Content.cs
- xml.cs
- VisualTreeUtils.cs
- TransformerTypeCollection.cs
- ReaderContextStackData.cs
- ReflectionUtil.cs
- SessionMode.cs
- Int64Animation.cs
- RemoteArgument.cs
- PrivacyNoticeElement.cs
- CompiledQueryCacheEntry.cs
- XslTransform.cs
- DataGridCheckBoxColumn.cs
- ExceptionUtil.cs
- CircleHotSpot.cs
- CheckableControlBaseAdapter.cs
- StylusShape.cs
- autovalidator.cs
- ConfigPathUtility.cs
- DataServiceHost.cs
- TextShapeableCharacters.cs
- DataStorage.cs
- RSAOAEPKeyExchangeDeformatter.cs
- BStrWrapper.cs
- TransactionContextValidator.cs
- TaiwanLunisolarCalendar.cs
- ByteStack.cs
- XmlReturnWriter.cs
- FocusWithinProperty.cs
- VectorCollection.cs
- PropertyStore.cs
- TextElementCollection.cs
- NGCPageContentSerializerAsync.cs
- HtmlForm.cs
- BitVector32.cs
- FormViewModeEventArgs.cs
- LineProperties.cs
- MaterialGroup.cs
- coordinator.cs
- PrintPreviewControl.cs
- BrowserInteropHelper.cs
- EditorPart.cs
- CompensationDesigner.cs
- ListParagraph.cs
- ServiceProviders.cs
- RenamedEventArgs.cs
- _OverlappedAsyncResult.cs
- AssemblyUtil.cs
- RegexCharClass.cs
- AccessDataSourceView.cs
- TextSelectionHighlightLayer.cs
- QuotedPrintableStream.cs
- CompilerLocalReference.cs
- CommandValueSerializer.cs
- Assembly.cs
- CodeConditionStatement.cs
- MdiWindowListStrip.cs
- VectorCollectionConverter.cs
- PeerContact.cs
- SqlMethodCallConverter.cs
- GradientStop.cs
- XmlText.cs
- ResourceKey.cs
- Tuple.cs
- RbTree.cs
- ConfigurationLocation.cs
- XmlPreloadedResolver.cs
- XamlReader.cs
- SystemThemeKey.cs
- Vector3DConverter.cs
- ToolStripTextBox.cs
- Adorner.cs
- DataServiceStreamResponse.cs
- ADConnectionHelper.cs
- XmlIlGenerator.cs
- TextRangeAdaptor.cs
- XPathNodeInfoAtom.cs
- XpsFilter.cs
- DataObjectEventArgs.cs
- DateTimeOffsetStorage.cs
- EntityContainer.cs
- FormParameter.cs
- DesignerProperties.cs
- ActiveXHost.cs
- ControlBuilder.cs
- ApplicationServiceHelper.cs
- ManifestResourceInfo.cs
- TransactionManager.cs
- VisualStyleElement.cs
- DataControlFieldHeaderCell.cs
- InvalidOleVariantTypeException.cs
- ScriptRegistrationManager.cs
- ProfileParameter.cs
- CheckedPointers.cs
- IpcClientManager.cs
- ZipIOLocalFileBlock.cs
- SchemaCollectionCompiler.cs