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
- BuildResult.cs
- TraceUtility.cs
- SchemaObjectWriter.cs
- Quaternion.cs
- WithStatement.cs
- FormViewInsertEventArgs.cs
- SingleKeyFrameCollection.cs
- COM2ComponentEditor.cs
- OdbcConnectionOpen.cs
- TrustManagerMoreInformation.cs
- Debug.cs
- AutomationTextAttribute.cs
- SchemaMerger.cs
- BuilderPropertyEntry.cs
- sqlcontext.cs
- TearOffProxy.cs
- TransformPattern.cs
- MasterPageParser.cs
- IgnoreDataMemberAttribute.cs
- Journal.cs
- WsatConfiguration.cs
- QuaternionAnimationBase.cs
- CodeAttachEventStatement.cs
- LogPolicy.cs
- ReflectEventDescriptor.cs
- StylusTouchDevice.cs
- DecimalConstantAttribute.cs
- SchemaImporterExtensionsSection.cs
- ConsumerConnectionPoint.cs
- ListViewDeleteEventArgs.cs
- TreeViewDataItemAutomationPeer.cs
- CaseInsensitiveComparer.cs
- FunctionNode.cs
- HijriCalendar.cs
- SymbolEqualComparer.cs
- MaxMessageSizeStream.cs
- rsa.cs
- RenderOptions.cs
- FixedNode.cs
- ContravarianceAdapter.cs
- PersonalizationProviderHelper.cs
- GradientPanel.cs
- ObjectDataSourceDisposingEventArgs.cs
- TreeNodeCollectionEditor.cs
- MimeBasePart.cs
- AvTrace.cs
- SqlDataSourceAdvancedOptionsForm.cs
- MatcherBuilder.cs
- DeobfuscatingStream.cs
- OpenFileDialog.cs
- WebEventTraceProvider.cs
- SoapAttributeAttribute.cs
- BoundField.cs
- PointCollection.cs
- SoapSchemaMember.cs
- EdmFunctions.cs
- PtsCache.cs
- WinFormsComponentEditor.cs
- OleDbInfoMessageEvent.cs
- Attributes.cs
- CfgParser.cs
- CanonicalizationDriver.cs
- _HeaderInfoTable.cs
- HostExecutionContextManager.cs
- DesignerRegionCollection.cs
- AllowedAudienceUriElementCollection.cs
- ValuePattern.cs
- HorizontalAlignConverter.cs
- Command.cs
- SHA512Managed.cs
- GreenMethods.cs
- ParseNumbers.cs
- EncryptedXml.cs
- TrustManagerPromptUI.cs
- PartialTrustHelpers.cs
- Permission.cs
- SharedDp.cs
- PageParserFilter.cs
- SelectionProviderWrapper.cs
- Assembly.cs
- SurrogateSelector.cs
- BindableTemplateBuilder.cs
- Inflater.cs
- SecurityState.cs
- InfiniteTimeSpanConverter.cs
- BitArray.cs
- SHA384Managed.cs
- InvalidateEvent.cs
- CngKeyCreationParameters.cs
- CodeSnippetTypeMember.cs
- InputEventArgs.cs
- EntityContainerEntitySet.cs
- WriteFileContext.cs
- Point3D.cs
- BuilderPropertyEntry.cs
- ConfigXmlComment.cs
- IDispatchConstantAttribute.cs
- EntityContainerAssociationSetEnd.cs
- SafeRsaProviderHandle.cs
- AssociationSet.cs