Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / EdmItemCollection.OcAssemblyCache.cs / 1305376 / EdmItemCollection.OcAssemblyCache.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Reflection; namespace System.Data.Metadata.Edm { internal class OcAssemblyCache { ////// cache for loaded assembly /// private Dictionary_conventionalOcCache; internal OcAssemblyCache() { _conventionalOcCache = new Dictionary (); } /// /// Please do NOT call this method outside of AssemblyCache. Since AssemblyCache maintain the lock, /// this method doesn't provide any locking mechanism. /// /// /// ///internal bool TryGetConventionalOcCacheFromAssemblyCache(Assembly assemblyToLookup, out ImmutableAssemblyCacheEntry cacheEntry) { cacheEntry = null; return _conventionalOcCache.TryGetValue(assemblyToLookup, out cacheEntry); } /// /// Please do NOT call this method outside of AssemblyCache. Since AssemblyCache maintain the lock, /// this method doesn't provide any locking mechanism. /// /// /// internal void AddAssemblyToOcCacheFromAssemblyCache(Assembly assembly, ImmutableAssemblyCacheEntry cacheEntry) { if (_conventionalOcCache.ContainsKey(assembly)) { // we shouldn't update the cache if we already have one return; } _conventionalOcCache.Add(assembly, cacheEntry); } } } // 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
- TypeTypeConverter.cs
- BitmapEffect.cs
- CompositeActivityTypeDescriptor.cs
- DockProviderWrapper.cs
- RolePrincipal.cs
- EntityDataSourceContainerNameItem.cs
- TypeInitializationException.cs
- DrawingCollection.cs
- NeutralResourcesLanguageAttribute.cs
- ByteArrayHelperWithString.cs
- LoadGrammarCompletedEventArgs.cs
- XamlToRtfWriter.cs
- Literal.cs
- BitmapEffectDrawingContextWalker.cs
- HMACSHA384.cs
- TextElementCollection.cs
- TextContainerChangeEventArgs.cs
- CodePageUtils.cs
- AdRotator.cs
- EntityDataSourceChangedEventArgs.cs
- MappedMetaModel.cs
- SqlFileStream.cs
- Highlights.cs
- webclient.cs
- TextPenaltyModule.cs
- TextViewBase.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DataGridViewComboBoxCell.cs
- DuplicateWaitObjectException.cs
- EntitySetRetriever.cs
- ReversePositionQuery.cs
- WindowPatternIdentifiers.cs
- OleDbPermission.cs
- TextEmbeddedObject.cs
- XsltException.cs
- HttpListenerPrefixCollection.cs
- HtmlTernaryTree.cs
- Timer.cs
- HtmlElementEventArgs.cs
- COAUTHINFO.cs
- ListViewAutomationPeer.cs
- QueryStatement.cs
- Int32KeyFrameCollection.cs
- SoapCommonClasses.cs
- XmlObjectSerializer.cs
- UnsafeNativeMethods.cs
- SynchronizedPool.cs
- ControlIdConverter.cs
- ProvidePropertyAttribute.cs
- DataSourceCache.cs
- SmtpAuthenticationManager.cs
- PolyBezierSegmentFigureLogic.cs
- SoapAttributeAttribute.cs
- LinkConverter.cs
- Wizard.cs
- UnmanagedMarshal.cs
- ValueOfAction.cs
- XmlSchemaFacet.cs
- SHA1Managed.cs
- LicFileLicenseProvider.cs
- PageRanges.cs
- ObjectReferenceStack.cs
- PropertyMetadata.cs
- ColumnMapVisitor.cs
- DbLambda.cs
- WebRequest.cs
- PlainXmlSerializer.cs
- MessageQueuePermission.cs
- ValidationHelper.cs
- RepeatBehavior.cs
- Opcode.cs
- DoubleCollection.cs
- BitVector32.cs
- GuidConverter.cs
- RunClient.cs
- DataGridRowEventArgs.cs
- DesignTimeHTMLTextWriter.cs
- StylusButtonEventArgs.cs
- ReflectionPermission.cs
- SemaphoreSecurity.cs
- UriWriter.cs
- Size3DValueSerializer.cs
- Rect.cs
- SqlStatistics.cs
- MultiPageTextView.cs
- CorrelationResolver.cs
- ExpressionPrefixAttribute.cs
- OracleRowUpdatedEventArgs.cs
- BuilderElements.cs
- XmlHelper.cs
- XmlValueConverter.cs
- WebPartConnectionsConfigureVerb.cs
- TaskbarItemInfo.cs
- GenerateTemporaryTargetAssembly.cs
- BlockUIContainer.cs
- ExpressionBindings.cs
- StyleModeStack.cs
- DefaultDialogButtons.cs
- SortFieldComparer.cs
- TogglePattern.cs