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
- DTCTransactionManager.cs
- propertyentry.cs
- UnmanagedMemoryStreamWrapper.cs
- WebPartMenu.cs
- SendKeys.cs
- SqlInternalConnection.cs
- DivideByZeroException.cs
- PathFigure.cs
- ReadWriteObjectLock.cs
- SerialReceived.cs
- SqlClientPermission.cs
- ProcessModelSection.cs
- QueryCacheManager.cs
- SuspendDesigner.cs
- XmlEntity.cs
- JsonWriter.cs
- RuleEngine.cs
- FixUp.cs
- SqlDeflator.cs
- GenericParameterDataContract.cs
- IncrementalHitTester.cs
- HttpHandler.cs
- ActivityExecutionFilter.cs
- FaultDescriptionCollection.cs
- SymbolUsageManager.cs
- EntityConnectionStringBuilderItem.cs
- XPathParser.cs
- FontFamilyValueSerializer.cs
- Publisher.cs
- AQNBuilder.cs
- AncillaryOps.cs
- InvalidPrinterException.cs
- WindowCollection.cs
- SchemaImporterExtension.cs
- TraceListeners.cs
- MonthCalendar.cs
- WindowsFormsHostAutomationPeer.cs
- InkCanvas.cs
- ConfigurationStrings.cs
- StylusDevice.cs
- CorePropertiesFilter.cs
- ObjectSet.cs
- SspiHelper.cs
- CustomPopupPlacement.cs
- WsatConfiguration.cs
- AccessedThroughPropertyAttribute.cs
- EditorPart.cs
- ReliableSession.cs
- SmtpException.cs
- GridViewEditEventArgs.cs
- Route.cs
- DefaultValueConverter.cs
- XmlAttributes.cs
- OleDbParameterCollection.cs
- ObjectReaderCompiler.cs
- IdnElement.cs
- SqlCacheDependency.cs
- DocumentPageHost.cs
- SerializationAttributes.cs
- unitconverter.cs
- OdbcException.cs
- RawStylusInputCustomDataList.cs
- X509Utils.cs
- SessionStateUtil.cs
- XmlIncludeAttribute.cs
- File.cs
- Regex.cs
- DocumentPageView.cs
- XmlEncodedRawTextWriter.cs
- RectangleF.cs
- UnionQueryOperator.cs
- ToolStripDropDownItem.cs
- RenamedEventArgs.cs
- PriorityRange.cs
- RadioButtonRenderer.cs
- AttachInfo.cs
- ToolStripContainerActionList.cs
- HtmlInputCheckBox.cs
- CssStyleCollection.cs
- OleDbErrorCollection.cs
- ChtmlPhoneCallAdapter.cs
- Logging.cs
- CryptoApi.cs
- DictionaryMarkupSerializer.cs
- GlyphsSerializer.cs
- BrowserCapabilitiesCodeGenerator.cs
- SqlUdtInfo.cs
- HtmlTextBoxAdapter.cs
- RegexNode.cs
- _SSPIWrapper.cs
- DesignTimeTemplateParser.cs
- ListViewCommandEventArgs.cs
- XsltContext.cs
- Vars.cs
- SqlUDTStorage.cs
- MsmqUri.cs
- TextEditorTables.cs
- StandardOleMarshalObject.cs
- StringKeyFrameCollection.cs
- AttachInfo.cs