Here are the examples of the csharp api class System.Collections.Concurrent.ConcurrentBag.Add(Orchard.Environment.ShellBuilders.ShellContainerFactory.NamedRegistration) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: Orchard
Source File: ShellContainerFactory.cs
Source File: ShellContainerFactory.cs
private void AddConcreteRegistrationName(string registrationName, Type interfaceType, Type implementationType, ConcurrentDictionary<Type, ConcurrentBag<NamedRegistration>> concreteRegistrationNames) { if (concreteRegistrationNames.ContainsKey(interfaceType) && concreteRegistrationNames[interfaceType] != null && !concreteRegistrationNames[interfaceType].Any(nr=>nr.Name==registrationName)) { concreteRegistrationNames[interfaceType].Add(new NamedRegistration(registrationName, implementationType)); } else { concreteRegistrationNames[interfaceType] = new ConcurrentBag<NamedRegistration> {new NamedRegistration(registrationName, implementationType)}; } }
0
2. Example
Project: Orchard
Source File: ShellContainerFactory.cs
Source File: ShellContainerFactory.cs
public ILifetimeScope CreateContainer(ShellSettings settings, ShellBlueprint blueprint) { /n ..... /n //View Source file for more details /n }