Project Name File Name Usage Source Code Link
RazorEngine TypeLoader.cs _constructors .GetOrAdd(type, GetConstructorInternal) Link To Source File
emitmapper-tools ReflectionUtils.cs TypeConverters.GetOrAdd(destinationType, TypeDescriptor.GetConverter) Link To Source File
emitmapper-tools ReflectionUtils.cs TypeConverters.GetOrAdd(sourceType, TypeDescriptor.GetConverter) Link To Source File
CouchDude DefaultEntityConfigConventions.cs cache.GetOrAdd(entityType, et => new ParticularyNamedPropertyOrPubilcFieldSpecialMember(entityType, memberNames)) Link To Source File
CouchDude LuceneQueryResult.cs NextPageQueries.GetOrAdd( queryResult, r => { if (queryResult.Count == queryResult.TotalCount || queryResult.Count == 0) return null; else { var nextPageQuery = queryResult.Query.Clone(); nextPageQuery.Skip = queryResult.Skip + queryResult.Count; nextPageQuery.Limit = queryResult.Limit; return nextPageQuery; } }) Link To Source File
CouchDude LazyConcurrentDictionary.cs innerDic.GetOrAdd(key, factory) Link To Source File
CouchDude ViewQueryResult.cs NextPageQueries.GetOrAdd( queryResult, r => { if (queryResult.Count == queryResult.TotalCount || queryResult.Count == 0) return null; else { var nextPageQuery = queryResult.Query.Clone(); var lastItem = queryResult.Rows.Last(); nextPageQuery.Skip = 1; if (nextPageQuery.StartKey != null) nextPageQuery.StartKey = lastItem.Key; if (lastItem.DocumentId.HasValue()) nextPageQuery.StartDocumentId = lastItem.DocumentId; return nextPageQuery; } }) Link To Source File
Agents SimpleMessageBus.cs _topics.GetOrAdd(path, p => new Topic()) Link To Source File
Agents MulticastingChannelRealiabilityLayer.cs _windows.GetOrAdd(heartbeat.ConnectionId, _ => new InputMovingWindow()) Link To Source File
Agents MulticastingChannelRealiabilityLayer.cs _windows.GetOrAdd(messageBase.ConnectionId, _ => new InputMovingWindow()) Link To Source File
ASP.NET-Mvc-3 CachedAssociatedMetadataProvider`1.cs _typeIds.GetOrAdd(type, _ => Guid.NewGuid().ToString("B")) Link To Source File
ASP.NET-Mvc-3 CachedExpressionCompiler.cs _fingerprintedCache.GetOrAdd(fingerprint, _ => { // Fingerprinting succeeded, but there was a cache miss. Rewrite the expression // and add the rewritten expression to the cache. var hoistedExpr = HoistingExpressionVisitor.Hoist(expr); return hoistedExpr.Compile(); }) Link To Source File
ASP.NET-Mvc-3 CachedExpressionCompiler.cs _simpleMemberAccessDict.GetOrAdd(memberExpr.Member, _ => expr.Compile()) Link To Source File
ASP.NET-Mvc-3 CachedExpressionCompiler.cs _constMemberAccessDict.GetOrAdd(memberExpr.Member, _ => { // rewrite as capturedLocal => ((TDeclaringType)capturedLocal).Member var constParamExpr = Expression.Parameter(typeof(object), "capturedLocal"); var constCastExpr = Expression.Convert(constParamExpr, memberExpr.Member.DeclaringType); var newMemberAccessExpr = memberExpr.Update(constCastExpr); var newLambdaExpr = Expression.Lambda>(newMemberAccessExpr, constParamExpr); return newLambdaExpr.Compile(); }) Link To Source File
ASP.NET-Mvc-3 ReflectedAttributeCache.cs lookup.GetOrAdd(memberInfo, mi => new ReadOnlyCollection((TAttribute[])memberInfo.GetCustomAttributes(typeof(TAttribute), inherit: true))) Link To Source File
ASP.NET-Mvc-3 CachedExpressionCompiler.cs _fingerprintedCache.GetOrAdd(fingerprint, _ => { // Fingerprinting succeeded, but there was a cache miss. Rewrite the expression // and add the rewritten expression to the cache. var hoistedExpr = HoistingExpressionVisitor.Hoist(expr); return hoistedExpr.Compile(); }) Link To Source File
ASP.NET-Mvc-3 CachedExpressionCompiler.cs _simpleMemberAccessDict.GetOrAdd(memberExpr.Member, _ => expr.Compile()) Link To Source File
ASP.NET-Mvc-3 CachedExpressionCompiler.cs _constMemberAccessDict.GetOrAdd(memberExpr.Member, _ => { // rewrite as capturedLocal => ((TDeclaringType)capturedLocal).Member var constParamExpr = Expression.Parameter(typeof(object), "capturedLocal"); var constCastExpr = Expression.Convert(constParamExpr, memberExpr.Member.DeclaringType); var newMemberAccessExpr = memberExpr.Update(constCastExpr); var newLambdaExpr = Expression.Lambda>(newMemberAccessExpr, constParamExpr); return newLambdaExpr.Compile(); }) Link To Source File
ASP.NET-Mvc-3 FilterAttribute.cs _multiuseAttributeCache.GetOrAdd( attributeType, type => type.GetCustomAttributes(typeof(AttributeUsageAttribute), true) .Cast() .First() .AllowMultiple ) Link To Source File
ASP.NET-Mvc-3 DefaultControllerFactory.cs _sessionStateCache.GetOrAdd( controllerType, type => { var attr = type.GetCustomAttributes(typeof(SessionStateAttribute), inherit: true) .OfType() .FirstOrDefault(); return (attr != null) ? attr.Behavior : SessionStateBehavior.Default; } ) Link To Source File
ASP.NET-Mvc-3 WebRazorHostFactory.cs _factories.GetOrAdd(config.Host.FactoryType, CreateFactory) Link To Source File
AutoMapper DelegateFactory.cs _ctorCache.GetOrAdd(type, t => { var ctorExpression = Expression.Lambda(Expression.Convert(Expression.New(type), typeof(object))); return ctorExpression.Compile(); }) Link To Source File
AutoMapper ConfigurationStore.cs _formatterProfiles.GetOrAdd(profileName, name => new FormatterExpression(t => (IValueFormatter) _serviceCtor(t))) Link To Source File
AutoMapper MappingEngine.cs _expressionCache.GetOrAdd(new TypePair(typeof (TSource), typeof (TDestination)), tp => { return CreateMapExpression(tp.SourceType, tp.DestinationType); }) Link To Source File
AutoMapper MappingEngine.cs _objectMapperCache.GetOrAdd(contextTypePair, missFunc) Link To Source File
AutoMapper TypeMapFactory.cs _typeInfos.GetOrAdd(type, t => new TypeInfo(type)) Link To Source File
NDistribUnit NativeRunnerCache.cs cache.GetOrAdd(key, guid => new ConcurrentDictionary()) Link To Source File
NDistribUnit NativeRunnerCache.cs cacheByParameters.GetOrAdd(hashCode, hash => { var runner = loadRunner(); // var timer = new Timer(obj=> // { // TestRunnerMetadata removed; // if (cacheByParameters.TryRemove(hashCode, out removed)) // removed.Runner.Unload(); // }, null, timeSpan, TimeSpan.FromMilliseconds(-1)); return new TestRunnerMetadata { Runner = runner, // Timer = timer }; }) Link To Source File
NDistribUnit AgentsTracker.cs timers.GetOrAdd(agent, key => new Timer(OnPingTimerTick, key, Timeout.Infinite, Timeout.Infinite)) Link To Source File
NDistribUnit AgentsTracker.cs addressLockObjects.GetOrAdd(address.ToString(), k => new object()) Link To Source File
NDistribUnit ResultsStorage.cs results.GetOrAdd(testRun.Id, guid => { var runResultsCollection = new RunResultsCollection(processor, log); runResultsCollection.AllItemsMerged += (sender, args) => Store(testRun, args.Data); return runResultsCollection; }) Link To Source File
NDistribUnit ResultsStorage.cs lockers.GetOrAdd(testRun.Id, guid => new ReaderWriterLockSlim()) Link To Source File
NDistribUnit RequestsStorage.cs requests.GetOrAdd(testRun.Id, guid => { exists = false; return new TestRunRequest(testRun); }) Link To Source File
NDistribUnit TestsScheduler.cs configurations.GetOrAdd(agentToRun.Name, key => { var distributedConfigurationValues = new DistributedConfigurationSubstitutions(); foreach (var variable in configurationSetup.Variables) { distributedConfigurationValues.Variables.Add( new DistributedConfigurationVariablesValue(variable.Name, variable.GetNextValue())); } return distributedConfigurationValues; }) Link To Source File
BTDB ObjectDBTransaction.cs _updatedTables.GetOrAdd(tableInfo, PersistTableInfo) Link To Source File
BTDB TableInfo.cs _tableVersions.GetOrAdd(LastPersistedVersion, v => _tableInfoResolver.LoadTableVersionInfo(_id, v, Name)) Link To Source File
BTDB TableInfo.cs _loaders.GetOrAdd(version, CreateLoader) Link To Source File
BTDB TableInfo.cs _tableVersions.GetOrAdd(version, version1 => _tableInfoResolver.LoadTableVersionInfo(_id, version1, Name)) Link To Source File
ProjectEuler DictionaryExtensions.cs concurrentDict.GetOrAdd(key, valueFactory) Link To Source File
ProjectEuler Problem074.cs _links.GetOrAdd(value, v => MathUtilities.ToDigits(v) .Sum(d => Factorials[d])) Link To Source File
ProjectEuler Problem095.cs _links.GetOrAdd(value, v => FactorGenerator.SumOfFactors(v)) Link To Source File
curiosity-common PropertyMapper.cs getAccessorCache.GetOrAdd(typeof(TSource), CreateGetAccessorsForType) Link To Source File
curiosity-common PropertyMapper.cs setAccessorCache.GetOrAdd(typeof(TTarget), CreateSetAccessorsForType) Link To Source File
InVision NativeFactory.cs TypeInstances.GetOrAdd(typeof(T), SearchImplementationType) Link To Source File
InVision NativeFactory.cs SharedInstances.GetOrAdd(typeof(T), CreateSharedInstance) Link To Source File
InVision GameComponentCollection.cs _componentsRegister.GetOrAdd(key, valueFactory) Link To Source File
InVision DynamicDelegate.cs Delegates.GetOrAdd(_key, CreateDelegate) Link To Source File
PineCone StructureSchemas.cs _schemas.GetOrAdd(type, _schemaFactoryFn) Link To Source File
SisoDb-Provider InProcMemoryCacheProvider.cs _cache.GetOrAdd(structureType, new InProcMemoryCache(structureType)) Link To Source File
Monator RawGatheringRequestModule.cs dictionary.GetOrAdd(data.Id, new RawDomainStatistics(data)) Link To Source File
Monator RequestModule.cs dictionary.GetOrAdd(data.Id, new DomainStatistics(data)) Link To Source File
Monator FullCachedRepository.cs ForeignIndex.GetOrAdd(_foreignKeyExpression(entity), (id) => new List()) Link To Source File
Monator FullCachedRepository.cs ForeignIndex.GetOrAdd(_foreignKeyExpression(entity), (id) => new List()) Link To Source File
Footloose EndpointIdentity.cs endpoints.GetOrAdd(presence.From, uri => new CommunicationEndpoint(this, uri)) Link To Source File
Footloose EndpointIdentityManagerBase.cs EndpointIdentities.GetOrAdd(identityUri, newUri => endpointIdentityFactory(newUri)) Link To Source File
Footloose EndpointIdentityManagerBase.cs EndpointIdentities.GetOrAdd(identityUri, newUri => endpointIdentityFactory(newUri)) Link To Source File
Footloose EndpointIdentityManagerBase.cs EndpointIdentities.GetOrAdd(identityUri, newUri => endpointIdentityFactory(newUri)) Link To Source File
Footloose MethodCallManager.cs methodCallsStateData.GetOrAdd(methodCall.CorrelationIdentifier, x => new MethodCallStateData { MethodResponseSignal = new ManualResetEventSlim(false) }) Link To Source File
Footloose MessageOriginator.cs messageStateDataDictionary.GetOrAdd(message.Id, x => new MessageStateData() { Message = message, MessageSignal = new AutoResetEvent(false), CancellationTokenSource = cancellationTokenSource }) Link To Source File
Tempest ObjectSerializer.cs Serializers.GetOrAdd (type, t => new ObjectSerializer (t)) Link To Source File
RuElect XNotifyPropertyChanged.cs s_dictionary .GetOrAdd(propertyName, (name) => new PropertyChangedEventArgs(name)) Link To Source File
MvcPerf CachedAssociatedMetadataProvider`1.cs _typeIds.GetOrAdd(type, _ => Guid.NewGuid().ToString("B")) Link To Source File
MvcPerf CachedExpressionCompiler.cs _fingerprintedCache.GetOrAdd(fingerprint, _ => { // Fingerprinting succeeded, but there was a cache miss. Rewrite the expression // and add the rewritten expression to the cache. var hoistedExpr = HoistingExpressionVisitor.Hoist(expr); return hoistedExpr.Compile(); }) Link To Source File
MvcPerf CachedExpressionCompiler.cs _simpleMemberAccessDict.GetOrAdd(memberExpr.Member, _ => expr.Compile()) Link To Source File
MvcPerf CachedExpressionCompiler.cs _constMemberAccessDict.GetOrAdd(memberExpr.Member, _ => { // rewrite as capturedLocal => ((TDeclaringType)capturedLocal).Member var constParamExpr = Expression.Parameter(typeof(object), "capturedLocal"); var constCastExpr = Expression.Convert(constParamExpr, memberExpr.Member.DeclaringType); var newMemberAccessExpr = memberExpr.Update(constCastExpr); var newLambdaExpr = Expression.Lambda>(newMemberAccessExpr, constParamExpr); return newLambdaExpr.Compile(); }) Link To Source File
MvcPerf ReflectedAttributeCache.cs lookup.GetOrAdd(memberInfo, mi => new ReadOnlyCollection((TAttribute[])memberInfo.GetCustomAttributes(typeof(TAttribute), inherit: true))) Link To Source File
MvcPerf CachedExpressionCompiler.cs _fingerprintedCache.GetOrAdd(fingerprint, _ => { // Fingerprinting succeeded, but there was a cache miss. Rewrite the expression // and add the rewritten expression to the cache. var hoistedExpr = HoistingExpressionVisitor.Hoist(expr); return hoistedExpr.Compile(); }) Link To Source File
MvcPerf CachedExpressionCompiler.cs _simpleMemberAccessDict.GetOrAdd(memberExpr.Member, _ => expr.Compile()) Link To Source File
MvcPerf CachedExpressionCompiler.cs _constMemberAccessDict.GetOrAdd(memberExpr.Member, _ => { // rewrite as capturedLocal => ((TDeclaringType)capturedLocal).Member var constParamExpr = Expression.Parameter(typeof(object), "capturedLocal"); var constCastExpr = Expression.Convert(constParamExpr, memberExpr.Member.DeclaringType); var newMemberAccessExpr = memberExpr.Update(constCastExpr); var newLambdaExpr = Expression.Lambda>(newMemberAccessExpr, constParamExpr); return newLambdaExpr.Compile(); }) Link To Source File
MvcPerf FilterAttribute.cs _multiuseAttributeCache.GetOrAdd( attributeType, type => type.GetCustomAttributes(typeof(AttributeUsageAttribute), true) .Cast() .First() .AllowMultiple ) Link To Source File
MvcPerf DefaultControllerFactory.cs _sessionStateCache.GetOrAdd( controllerType, type => { var attr = type.GetCustomAttributes(typeof(SessionStateAttribute), inherit: true) .OfType() .FirstOrDefault(); return (attr != null) ? attr.Behavior : SessionStateBehavior.Default; } ) Link To Source File
MvcPerf WebRazorHostFactory.cs _factories.GetOrAdd(config.Host.FactoryType, CreateFactory) Link To Source File
nuget RunspaceManager.cs _runspaceCache.GetOrAdd(hostName, name => CreateAndSetupRunspace(console, name)) Link To Source File
corlib ObservableExtensions.cs dictionary.GetOrAdd (key, factory_) Link To Source File
ILSpy LoadedAssembly.cs assemblyList.winRTMetadataLookupCache.GetOrAdd(name.Name, LookupWinRTMetadata) Link To Source File
ILSpy LoadedAssembly.cs assemblyList.assemblyLookupCache.GetOrAdd(name.FullName, LookupReferencedAssemblyInternal) Link To Source File
ILSpy LoadedAssembly.cs assemblyList.assemblyLookupCache.GetOrAdd(fullName, LookupReferencedAssemblyInternal) Link To Source File
ILSpy DefaultSolutionSnapshot.cs dictionary.GetOrAdd(project, p => p.CreateCompilation(this)) Link To Source File
ILSpy DefaultUnresolvedAssembly.cs typeDict.GetOrAdd(unresolved, t => CreateTypeDefinition(t)) Link To Source File
ILSpy CacheManager.cs sharedDict.GetOrAdd(key, valueFactory) Link To Source File
ILSpy Program.cs assemblyDict.GetOrAdd(assemblyFileName, file => new CecilLoader().LoadAssemblyFile(file)) Link To Source File
NRefactory Program.cs assemblyDict.GetOrAdd(assemblyFileName, file => new CecilLoader().LoadAssemblyFile(file)) Link To Source File
SharpDevelop DefaultSolutionSnapshot.cs dictionary.GetOrAdd(project, p => p.CreateCompilation(this)) Link To Source File
SharpDevelop DefaultUnresolvedAssembly.cs typeDict.GetOrAdd(unresolved, t => CreateTypeDefinition(t)) Link To Source File
SharpDevelop CacheManager.cs sharedDict.GetOrAdd(key, valueFactory) Link To Source File
Pentacorn InteropBuffer.cs SizedFreeList.GetOrAdd(size, (_) => new Bag()) Link To Source File
OrchardApp ShapeTableLocator.cs _shapeTables.GetOrAdd(themeName ?? "", _ => _shapeTableManager.GetShapeTable(themeName)) Link To Source File
OrchardApp IAssemblyLoader.cs _loadedAssemblies.GetOrAdd(this.ExtractAssemblyShortName(assemblyName), shortName => LoadWorker(shortName, assemblyName)) Link To Source File
OrchardApp WorkContextImplementation.cs _stateResolvers.GetOrAdd(name, FindResolverForState) Link To Source File
OrchardApp ConfiguredEnginesCache.cs _shallow.GetOrAdd(themeName, key => factory()) Link To Source File
OrchardApp ConfiguredEnginesCache.cs _deep.GetOrAdd(themeName, key => factory()) Link To Source File
OrchardApp DefaultContentManager.cs GetOrAdd(key, _valueFactory) Link To Source File
OrchardApp ShapeAttributeBindingStrategy.cs _getters.GetOrAdd(parameter.Name, n => CallSite>.Create( Microsoft.CSharp.RuntimeBinder.Binder.GetMember( CSharpBinderFlags.None, n, null, new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))) Link To Source File
OrchardApp ShapeAttributeBindingStrategy.cs _converters.GetOrAdd(parameter.ParameterType, CompileConverter) Link To Source File
OrchardApp ExtensionLoaderCoordinator.cs virtualPathDependencies.GetOrAdd(path, p => _virtualPathProvider.GetFileLastWriteTimeUtc(p)) Link To Source File
OrchardApp DefaultCacheHolder.cs _caches.GetOrAdd(cacheKey, k => new Cache(_cacheContextAccessor)) Link To Source File
OrchardApp LocalizationModule.cs _localizerCache.GetOrAdd(scope, key => LocalizationUtilities.Resolve(e.Context, scope)) Link To Source File
OrchardApp ContainerSpy.cs nodes.GetOrAdd(Thread.CurrentThread.ManagedThreadId, _ => { var tc = new ThreadContext(); tc.Root = tc.Clock = tc.Chain = tc.Focus = new Node(tc); return tc; }) Link To Source File
lokad-cqrs BlockBlobTapeStorageFactory.cs _writers.GetOrAdd( name, s => { var container = _cloudBlobClient.GetContainerReference(_containerName); return new BlockBlobTapeStream(container, name); }) Link To Source File
lokad-cqrs BlobTapeStorageFactory.cs _writers.GetOrAdd( name, s => { var container = _cloudBlobClient.GetContainerReference(_containerName); return new BlobTapeStream(container, name); }) Link To Source File
lokad-cqrs AzureQueueWriterFactory.cs _writeQueues.GetOrAdd(queueName, name => { var queue = _config.CreateQueueClient().GetQueueReference(name); var container = _config.CreateBlobClient().GetContainerReference(name); var v = new StatelessAzureQueueWriter( container, queue, name); v.Init(); return v; }) Link To Source File
lokad-cqrs ProtobufFixture.cs Dict.GetOrAdd(type, RuntimeTypeModel.Default.CreateFormatter) Link To Source File
lokad-cqrs MemoryStreamingContainer.cs GetRealContainer()._containers.GetOrAdd(container.FullPath, s => container) Link To Source File
lokad-cqrs FileTapeStorageFactory.cs _writers.GetOrAdd(name, n => BuildTapStream(name)) Link To Source File
lokad-cqrs MemoryStorage.cs storageConfig.Queues.GetOrAdd(n, s => new BlockingCollection()) Link To Source File
lokad-cqrs MemoryStorage.cs storageConfig.Queues.GetOrAdd(queueName, s => new BlockingCollection()) Link To Source File
lokad-cqrs MessageDuplicationManager.cs _memories.GetOrAdd(dispatcher, s => new MessageDuplicationMemory()) Link To Source File
LoreSoft.Shared CacheManager.cs _cacheStore.GetOrAdd(key, valueFactory) Link To Source File
LoreSoft.Shared PipelineBase.cs _moduleCache.GetOrAdd(typeof(TModule), t => { var modules = (from type in t.Assembly.GetTypes() where (type.IsClass && !type.IsNotPublic) && !type.IsAbstract && type.IsSubclassOf(t) select Activator.CreateInstance(type)) .OfType() .OrderBy(r => r.Priority) .ToList(); return modules; }) Link To Source File
LoreSoft.Shared TypeAccessor.cs _methodCache.GetOrAdd(key, n => CreateMethodAccessor(name, parameterTypes, flags)) Link To Source File
LoreSoft.Shared TypeAccessor.cs _memberCache.GetOrAdd(name, n => CreateAccessor(n, flags)) Link To Source File
LoreSoft.Shared TypeAccessor.cs _memberCache.GetOrAdd(name, n => CreatePropertyAccessor(n, flags)) Link To Source File
LoreSoft.Shared TypeAccessor.cs _memberCache.GetOrAdd(propertyInfo.Name, n => CreateAccessor(propertyInfo)) Link To Source File
LoreSoft.Shared TypeAccessor.cs _propertyCache.GetOrAdd((int)flags, k => { var properties = Type.GetProperties(flags); return properties.Select(GetAccessor); }) Link To Source File
LoreSoft.Shared TypeAccessor.cs _memberCache.GetOrAdd(name, n => CreateFieldAccessor(n, flags)) Link To Source File
LoreSoft.Shared TypeAccessor.cs _memberCache.GetOrAdd(fieldInfo.Name, n => CreateAccessor(fieldInfo)) Link To Source File
LoreSoft.Shared TypeAccessor.cs _typeCache.GetOrAdd(type, t => new TypeAccessor(t)) Link To Source File
Simple.Data CachingAdapterFactory.cs _cache.GetOrAdd(hash, _ => DoCreate(adapterName, mat)) Link To Source File
Simple.Data CommandFactory.cs Cache.GetOrAdd(method, m => Commands.SingleOrDefault(command => command.IsCommandFor(method))) Link To Source File
Simple.Data ConcreteTypeCreator.cs Cache.GetOrAdd(concreteType, type => new ConcreteTypeCreator(type)) Link To Source File
Simple.Data HomogenizeEx.cs Cache.GetOrAdd(source, HomogenizeImpl) Link To Source File
Simple.Data DynamicSchema.cs _tables.GetOrAdd(name, CreateDynamicTable) Link To Source File
Simple.Data DataStrategy.cs _members.GetOrAdd(name, CreateDynamicReference) Link To Source File
Simple.Data AdoAdapterFinder.cs _commandCaches.GetOrAdd(tableName, _ => new ConcurrentDictionary()) Link To Source File
Simple.Data AdoAdapterFinder.cs tableCommandCache.GetOrAdd(hash, _ => new FindHelper(_adapter.GetSchema()) .GetFindByCommand(_adapter.GetSchema().BuildObjectName(tableName), criteria) .GetCommandTemplate(_adapter.GetSchema().FindTable(_adapter.GetSchema().BuildObjectName(tableName)))) Link To Source File
Simple.Data AdoAdapterGetter.cs _commandCaches.GetOrAdd(tableName, _ => new ConcurrentDictionary()) Link To Source File
Simple.Data AdoAdapterGetter.cs tableCommandCache.GetOrAdd(hash, _ => new FindHelper(_adapter.GetSchema()) .GetFindByCommand(_adapter.GetSchema().BuildObjectName(tableName), criteria) .GetCommandTemplate(_adapter.GetSchema().FindTable(_adapter.GetSchema().BuildObjectName(tableName)))) Link To Source File
Simple.Data AdoAdapterRelatedFinder.cs _tableJoins.Value.GetOrAdd(Tuple.Create(tableName, relatedTableName), t => TryCreateJoin(t.Item1, t.Item2)) Link To Source File
Simple.Data Joiner.cs _done.GetOrAdd(table2Name, _ => { var table1 = _schema.FindTable(table1Name); var table2 = _schema.FindTable(table2Name); var foreignKey = GetForeignKey(table1, table2); return MakeJoinText(table2, table2Name.Alias, foreignKey, joinType); }) Link To Source File
Simple.Data ProviderHelper.cs _connectionProviderCache.GetOrAdd(token, LoadProviderByConnectionString) Link To Source File
Simple.Data ProviderHelper.cs _connectionProviderCache.GetOrAdd(token, LoadProviderByFilename) Link To Source File
Simple.Data ProviderHelper.cs _connectionProviderCache.GetOrAdd(new ConnectionToken(connectionString, providerName), LoadProviderByConnectionToken) Link To Source File
Simple.Data ProviderHelper.cs _customProviderCache.GetOrAdd(typeof (T), t => GetCustomProviderExport(connectionProvider.GetType().Assembly) ?? GetCustomProviderServiceProvider(connectionProvider as IServiceProvider, t)) Link To Source File
Simple.Data ProviderHelper.cs _customProviderCache.GetOrAdd(typeof(T), t => GetCustomProviderExport(schemaProvider)) Link To Source File
Simple.Data DatabaseSchema.cs Instances.GetOrAdd(connectionProvider.ConnectionString, sp => new DatabaseSchema(connectionProvider.GetSchemaProvider(), providerHelper)) Link To Source File
Simple.Data AdoAdapter.IAdapterWithFunctions.cs _executors.GetOrAdd(functionName, f => _connectionProvider.GetProcedureExecutor(this, _schema.BuildObjectName(f))) Link To Source File
nuget RunspaceManager.cs _runspaceCache.GetOrAdd(hostName, name => CreateAndSetupRunspace(console, name)) Link To Source File
Phutball EventPublisher.cs _subjects.GetOrAdd(typeof (TEvent), t => new Subject()) Link To Source File
SwarmIntelligence ConcurrentDictionaryCache.cs cache.GetOrAdd(key, objKey => factory((TKey) objKey)) Link To Source File
orchard IAssemblyLoader.cs _loadedAssemblies.GetOrAdd(this.ExtractAssemblyShortName(assemblyName), shortName => LoadWorker(shortName, assemblyName)) Link To Source File
orchard WorkContextImplementation.cs _stateResolvers.GetOrAdd(name, FindResolverForState) Link To Source File
orchard ConfiguredEnginesCache.cs _shallow.GetOrAdd(themeName, key => factory()) Link To Source File
orchard ConfiguredEnginesCache.cs _deep.GetOrAdd(themeName, key => factory()) Link To Source File
orchard DefaultContentManager.cs GetOrAdd(key, _valueFactory) Link To Source File
orchard ShapeAttributeBindingStrategy.cs _getters.GetOrAdd(parameter.Name, n => CallSite>.Create( Microsoft.CSharp.RuntimeBinder.Binder.GetMember( CSharpBinderFlags.None, n, null, new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))) Link To Source File
orchard ShapeAttributeBindingStrategy.cs _converters.GetOrAdd(parameter.ParameterType, CompileConverter) Link To Source File
orchard ExtensionLoaderCoordinator.cs virtualPathDependencies.GetOrAdd(path, p => _virtualPathProvider.GetFileLastWriteTimeUtc(p)) Link To Source File
orchard DefaultCacheHolder.cs _caches.GetOrAdd(cacheKey, k => new Cache(_cacheContextAccessor)) Link To Source File
orchard LocalizationModule.cs _localizerCache.GetOrAdd(scope, key => LocalizationUtilities.Resolve(e.Context, scope)) Link To Source File
orchard ContainerSpy.cs nodes.GetOrAdd(Thread.CurrentThread.ManagedThreadId, _ => { var tc = new ThreadContext(); tc.Root = tc.Clock = tc.Chain = tc.Focus = new Node(tc); return tc; }) Link To Source File
NugetCracker RunspaceManager.cs _runspaceCache.GetOrAdd(hostName, name => CreateAndSetupRunspace(console, name)) Link To Source File
Rebus ErrorTracker.cs trackedMessages.GetOrAdd(id, i => new TrackedMessage(id)) Link To Source File
Rebus RebusBus.cs headers.GetOrAdd(message, msg => new Dictionary()) Link To Source File
WCFWeb JsonMediaTypeFormatter.cs this.serializerCache.GetOrAdd( type, (t) => this.CreateDefaultSerializer(t)) Link To Source File
WCFWeb JsonMediaTypeFormatter.cs this.serializerCache.GetOrAdd( type, (t) => this.CreateDefaultSerializer(t)) Link To Source File
WCFWeb JsonMediaTypeFormatter.cs this.serializerCache.GetOrAdd(type, (t) => this.CreateDefaultSerializer(type)) Link To Source File
WCFWeb XmlMediaTypeFormatter.cs this.serializerCache.GetOrAdd( type, (t) => this.CreateDefaultSerializer(t, throwOnError: false)) Link To Source File
WCFWeb XmlMediaTypeFormatter.cs this.serializerCache.GetOrAdd( type, (t) => this.CreateDefaultSerializer(t, throwOnError: false)) Link To Source File
WCFWeb XmlMediaTypeFormatter.cs this.serializerCache.GetOrAdd(type, (t) => this.CreateDefaultSerializer(t, throwOnError: true)) Link To Source File
Messageless InProcTransport.cs s_subjects.GetOrAdd(path, _ => new ReplaySubject()) Link To Source File
OG-DotNet StreamingFudgeBuilder.cs Builders.GetOrAdd(type, _ => CreateBuilder(type, genericBuilderType)) Link To Source File
OG-DotNet Memoizer.cs _values.GetOrAdd(arg, _func) Link To Source File
OG-DotNet ActionFactory.cs _results.GetOrAdd(key, _action) Link To Source File
Automapper DelegateFactory.cs _ctorCache.GetOrAdd(type, t => { var ctorExpression = Expression.Lambda(Expression.Convert(Expression.New(type), typeof(object))); return ctorExpression.Compile(); }) Link To Source File
Automapper ConfigurationStore.cs _formatterProfiles.GetOrAdd(profileName, name => new FormatterExpression(t => (IValueFormatter) _serviceCtor(t))) Link To Source File
Automapper MappingEngine.cs _expressionCache.GetOrAdd(new TypePair(typeof (TSource), typeof (TDestination)), tp => { return CreateMapExpression(tp.SourceType, tp.DestinationType); }) Link To Source File
Automapper MappingEngine.cs _objectMapperCache.GetOrAdd(contextTypePair, missFunc) Link To Source File
Automapper TypeMapFactory.cs _typeInfos.GetOrAdd(type, t => new TypeInfo(type)) Link To Source File
ravendb ReplicationTask.cs activeReplicationTasks.GetOrAdd(destination.ConnectionStringOptions.Url, new IntHolder()) Link To Source File
ravendb ReplicationTask.cs activeReplicationTasks.GetOrAdd(destination.ConnectionStringOptions.Url, new IntHolder()) Link To Source File
ravendb DynamicUtil.cs callsitesCache.GetOrAdd(dynamicMemberName, valueFactory) Link To Source File
ravendb RavenProfilingHandler.cs cache.GetOrAdd(path, s => { using (var stream = typeof(RavenProfilingHandler).Assembly.GetManifestResourceStream("Raven.Client.MvcIntegration.Content." + path.Replace("/", "."))) { return new StreamReader(stream).ReadToEnd(); } }) Link To Source File
ravendb DynamicQueryRunner.cs temporaryIndexes.GetOrAdd(temporaryIndexName, s => new TemporaryIndexInfo { Created = SystemTime.Now, RunCount = 0, Name = temporaryIndexName }) Link To Source File
ravendb MapReduceIndex.cs documentIdFetcherCache.GetOrAdd(doc.GetType(), type => { // document may be DynamicJsonObject if we are using compiled views if (typeof (DynamicJsonObject) == type) { return i => ((dynamic) i).__document_id; } var docIdProp = TypeDescriptor.GetProperties(doc).Find(Constants.DocumentIdFieldName, false); return docIdProp.GetValue; }) Link To Source File
ravendb BackwardCompatability.cs typePropertiesCache.GetOrAdd(entity.GetType(), type => new HashSet(type.GetProperties().Select(x => x.Name))) Link To Source File
AzureBlobDrive AzureOperations.cs blobsWriting.GetOrAdd(filename, str => this.GetBlob(filename, false).OpenWrite()) Link To Source File
MOUSE ServerNode.cs _proxyCache.GetOrAdd(serviceKey, (sk) => Protocol.CreateProxy(sk, MessageFactory, service)) Link To Source File
MOUSE Node.cs _proxyCache.GetOrAdd(serviceKey, createProxy) Link To Source File
NServieBus.Xms XmsConsumerProvider.cs poolsByDestination.GetOrAdd(destination, PoolFactory) Link To Source File
NServieBus.Xms XmsProducerProvider.cs poolsByDestination.GetOrAdd(destination, PoolFactory) Link To Source File
NServieBus.Xms XmsProducerProvider.cs scopedProducers.GetOrAdd(key, k => new XmsCommitPerScopeProducer(pooled, producer.Session, () => { log.Debug("Removing pending scoped producer for {0}.".FormatWith(key)); XmsCommitPerScopeProducer _; scopedProducers.TryRemove(key, out _); })) Link To Source File
yessql Session.cs _store.GroupMethods.GetOrAdd(descriptor.Type, (Type key) => { // IIndex i => i var instance = Expression.Parameter(typeof (IIndex), "i"); // i => ((TIndex)i) var convertInstance = Expression.Convert(instance, descriptor.GroupKey.DeclaringType); // i => ((TIndex)i).{Property} var property = Expression.Property(convertInstance, descriptor.GroupKey); // i => (object)(((TIndex)i).{Property}) var convert = Expression.Convert(property, typeof (object)); return Expression.Lambda>(convert, instance).Compile(); }) Link To Source File
yessql Session.cs _store.Descriptors.GetOrAdd(target, key => { var contextType = typeof (DescribeContext<>).MakeGenericType(target); var context = Activator.CreateInstance(contextType) as IDescriptor; foreach (var provider in _store.Indexes) { if (provider.ForType().IsAssignableFrom(target)) { provider.Describe(context); } } return context.Describe(new[] {target}).ToList(); }) Link To Source File
twdc CachedAssociatedMetadataProvider`1.cs _typeIds.GetOrAdd(type, _ => Guid.NewGuid().ToString("B")) Link To Source File
twdc CachedExpressionCompiler.cs _fingerprintedCache.GetOrAdd(fingerprint, _ => { // Fingerprinting succeeded, but there was a cache miss. Rewrite the expression // and add the rewritten expression to the cache. var hoistedExpr = HoistingExpressionVisitor.Hoist(expr); return hoistedExpr.Compile(); }) Link To Source File
twdc CachedExpressionCompiler.cs _simpleMemberAccessDict.GetOrAdd(memberExpr.Member, _ => expr.Compile()) Link To Source File
twdc CachedExpressionCompiler.cs _constMemberAccessDict.GetOrAdd(memberExpr.Member, _ => { // rewrite as capturedLocal => ((TDeclaringType)capturedLocal).Member var constParamExpr = Expression.Parameter(typeof(object), "capturedLocal"); var constCastExpr = Expression.Convert(constParamExpr, memberExpr.Member.DeclaringType); var newMemberAccessExpr = memberExpr.Update(constCastExpr); var newLambdaExpr = Expression.Lambda>(newMemberAccessExpr, constParamExpr); return newLambdaExpr.Compile(); }) Link To Source File
twdc ReflectedAttributeCache.cs lookup.GetOrAdd(memberInfo, mi => new ReadOnlyCollection((TAttribute[])memberInfo.GetCustomAttributes(typeof(TAttribute), inherit: true))) Link To Source File
twdc CachedExpressionCompiler.cs _fingerprintedCache.GetOrAdd(fingerprint, _ => { // Fingerprinting succeeded, but there was a cache miss. Rewrite the expression // and add the rewritten expression to the cache. var hoistedExpr = HoistingExpressionVisitor.Hoist(expr); return hoistedExpr.Compile(); }) Link To Source File
twdc CachedExpressionCompiler.cs _simpleMemberAccessDict.GetOrAdd(memberExpr.Member, _ => expr.Compile()) Link To Source File
twdc CachedExpressionCompiler.cs _constMemberAccessDict.GetOrAdd(memberExpr.Member, _ => { // rewrite as capturedLocal => ((TDeclaringType)capturedLocal).Member var constParamExpr = Expression.Parameter(typeof(object), "capturedLocal"); var constCastExpr = Expression.Convert(constParamExpr, memberExpr.Member.DeclaringType); var newMemberAccessExpr = memberExpr.Update(constCastExpr); var newLambdaExpr = Expression.Lambda>(newMemberAccessExpr, constParamExpr); return newLambdaExpr.Compile(); }) Link To Source File
twdc FilterAttribute.cs _multiuseAttributeCache.GetOrAdd( attributeType, type => type.GetCustomAttributes(typeof(AttributeUsageAttribute), true) .Cast() .First() .AllowMultiple ) Link To Source File
twdc DefaultControllerFactory.cs _sessionStateCache.GetOrAdd( controllerType, type => { var attr = type.GetCustomAttributes(typeof(SessionStateAttribute), inherit: true) .OfType() .FirstOrDefault(); return (attr != null) ? attr.Behavior : SessionStateBehavior.Default; } ) Link To Source File
twdc WebRazorHostFactory.cs _factories.GetOrAdd(config.Host.FactoryType, CreateFactory) Link To Source File
wa-toolkit-games SkirmishGameAutoStartCommandTest.cs testContext.GetOrAdd("currentGameQueueId", testGameQueue.Id) Link To Source File
wa-toolkit-games SkirmishGameCommandTest.cs testContext.GetOrAdd("currentGameQueueId", testGameQueue1.Id) Link To Source File
wa-toolkit-games SkirmishGameCommandTest.cs testContext.GetOrAdd("currentGameQueueId", testGameQueue.Id) Link To Source File
wa-toolkit-games SkirmishGameCommandTest.cs testContext.GetOrAdd("currentGameQueueId", testGameQueue.Id) Link To Source File