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
- OdbcConnectionHandle.cs
- IpcManager.cs
- LocatorBase.cs
- ListControl.cs
- SelectionItemProviderWrapper.cs
- Wizard.cs
- tabpagecollectioneditor.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- SignatureConfirmationElement.cs
- XamlInt32CollectionSerializer.cs
- ManagementQuery.cs
- TypeConverter.cs
- BufferedOutputAsyncStream.cs
- ErrorsHelper.cs
- TablePattern.cs
- ActivationWorker.cs
- StatusBarPanel.cs
- FactoryGenerator.cs
- NameValueCollection.cs
- XmlSerializerFormatAttribute.cs
- SystemResourceKey.cs
- ConfigXmlComment.cs
- DesignRelation.cs
- ContractNamespaceAttribute.cs
- CancellationTokenRegistration.cs
- PageRanges.cs
- Math.cs
- FileDialog_Vista_Interop.cs
- Control.cs
- BasicAsyncResult.cs
- ConfigPathUtility.cs
- TemplateBindingExpression.cs
- NameValueConfigurationCollection.cs
- RuleSetReference.cs
- SpecialFolderEnumConverter.cs
- PeerPresenceInfo.cs
- BasicExpressionVisitor.cs
- XmlMemberMapping.cs
- Vector3dCollection.cs
- StatusBarItem.cs
- ScriptHandlerFactory.cs
- UpdateManifestForBrowserApplication.cs
- SafePointer.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CodeTypeReference.cs
- ToolStripHighContrastRenderer.cs
- LocalIdKeyIdentifierClause.cs
- IdnMapping.cs
- WorkflowInvoker.cs
- Repeater.cs
- LookupBindingPropertiesAttribute.cs
- ClientSideProviderDescription.cs
- DataGridViewColumnCollectionEditor.cs
- TranslateTransform.cs
- PathFigure.cs
- ControlsConfig.cs
- FontWeightConverter.cs
- FormatConvertedBitmap.cs
- AsyncOperation.cs
- ExtensionWindowResizeGrip.cs
- OneToOneMappingSerializer.cs
- Point3DCollection.cs
- ObjectItemAssemblyLoader.cs
- HttpListenerResponse.cs
- EventMap.cs
- ChineseLunisolarCalendar.cs
- HostingPreferredMapPath.cs
- _AcceptOverlappedAsyncResult.cs
- AddingNewEventArgs.cs
- IdentityValidationException.cs
- XmlSchemaObject.cs
- BlobPersonalizationState.cs
- WindowsFormsLinkLabel.cs
- SspiNegotiationTokenAuthenticatorState.cs
- StreamWithDictionary.cs
- DiagnosticTraceSource.cs
- SourceChangedEventArgs.cs
- Base64Decoder.cs
- TargetInvocationException.cs
- UpdatePanelControlTrigger.cs
- FormsAuthenticationModule.cs
- CollectionViewGroupInternal.cs
- TextViewBase.cs
- InheritablePropertyChangeInfo.cs
- BaseTemplateCodeDomTreeGenerator.cs
- CharAnimationUsingKeyFrames.cs
- NativeMethods.cs
- DocumentGridContextMenu.cs
- Int32EqualityComparer.cs
- WindowsScrollBar.cs
- HttpClientCertificate.cs
- RayHitTestParameters.cs
- TypeDescriptionProviderAttribute.cs
- DbUpdateCommandTree.cs
- ObservableCollectionDefaultValueFactory.cs
- ResXResourceReader.cs
- TypeUnloadedException.cs
- XPathDocumentIterator.cs
- WindowsRegion.cs
- HttpsTransportBindingElement.cs