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
- MoveSizeWinEventHandler.cs
- FacetValueContainer.cs
- ELinqQueryState.cs
- Ticks.cs
- WebPartExportVerb.cs
- GridPatternIdentifiers.cs
- EmissiveMaterial.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- _CacheStreams.cs
- IssuedTokenClientElement.cs
- SecurityDocument.cs
- ConfigurationSettings.cs
- SerialReceived.cs
- ControlAdapter.cs
- OnOperation.cs
- HttpApplicationFactory.cs
- VisualStyleTypesAndProperties.cs
- ServiceEndpointAssociationProvider.cs
- DependencyObjectPropertyDescriptor.cs
- WaitHandle.cs
- DataContractSerializerOperationGenerator.cs
- DesignerLabelAdapter.cs
- CompilerResults.cs
- XmlUtf8RawTextWriter.cs
- XhtmlBasicLabelAdapter.cs
- ListBindableAttribute.cs
- ByteStreamGeometryContext.cs
- ProfileSettings.cs
- QueryMath.cs
- FixedHyperLink.cs
- GeneralTransform2DTo3DTo2D.cs
- SettingsPropertyWrongTypeException.cs
- ControlCollection.cs
- ExtractCollection.cs
- InputScopeConverter.cs
- TextProviderWrapper.cs
- EndpointNotFoundException.cs
- ProfileService.cs
- HtmlForm.cs
- PipeStream.cs
- DataRecord.cs
- DeferredBinaryDeserializerExtension.cs
- ClearCollection.cs
- SectionVisual.cs
- DataGridViewCheckBoxCell.cs
- OdbcConnectionPoolProviderInfo.cs
- EventHandlersStore.cs
- XmlNamedNodeMap.cs
- EditingScopeUndoUnit.cs
- EventProviderWriter.cs
- TreeViewItemAutomationPeer.cs
- TypeUtil.cs
- GCHandleCookieTable.cs
- DBPropSet.cs
- Serializer.cs
- Attributes.cs
- ListItemViewControl.cs
- SmtpFailedRecipientsException.cs
- _Connection.cs
- Tracer.cs
- TreeIterator.cs
- TextElementEnumerator.cs
- PanelStyle.cs
- CleanUpVirtualizedItemEventArgs.cs
- HandleCollector.cs
- SiteMapPath.cs
- SelectionBorderGlyph.cs
- LiteralControl.cs
- FormViewInsertEventArgs.cs
- BounceEase.cs
- WebRequest.cs
- WindowsGraphics.cs
- FrameworkElement.cs
- EntityCommandDefinition.cs
- ValidatorCompatibilityHelper.cs
- ScriptManagerProxy.cs
- FormattedTextSymbols.cs
- EntityDataSourceReferenceGroup.cs
- ResourceBinder.cs
- MetadataImporterQuotas.cs
- SelectionGlyph.cs
- WinOEToolBoxItem.cs
- ComponentConverter.cs
- ClientSettings.cs
- Pens.cs
- ChangeBlockUndoRecord.cs
- ToolStripSplitButton.cs
- TextTreeInsertUndoUnit.cs
- SiteMapDataSource.cs
- OracleSqlParser.cs
- XsltCompileContext.cs
- ToolStripItemTextRenderEventArgs.cs
- UnaryNode.cs
- MappingSource.cs
- Stroke.cs
- MatrixTransform3D.cs
- Maps.cs
- ConsumerConnectionPoint.cs
- FutureFactory.cs
- RemoteWebConfigurationHostStream.cs