System.Collections.Generic.IDictionary.ContainsKey(IServerModule)

Here are the examples of the csharp api System.Collections.Generic.IDictionary.ContainsKey(IServerModule) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : ModuleDependencyManager.cs
with Apache License 2.0
from PHOENIXCONTACT

public IModuleDependency GetDependencyBranch(IServerModule plugin)
        {
            return _cache.ContainsKey(plugin) ? _cache[plugin] : null;
        }

19 Source : ModuleManagerComponent.cs
with Apache License 2.0
from PHOENIXCONTACT

protected void AddWaitingService(IServerModule dependency, IServerModule dependend)
        {
            lock (WaitingModules)
            {
                if (WaitingModules.ContainsKey(dependency))
                {
                    if (!WaitingModules[dependency].Contains(dependend))
                        WaitingModules[dependency].Add(dependend);
                }
                else
                {
                    WaitingModules[dependency] = new List<IServerModule> { dependend };
                }
            }
        }