StructureMap.Pipeline.LifecycleObjectCache.Has C# (CSharp) Method

Has() public method

public Has ( Type pluginType, StructureMap.Pipeline.Instance instance ) : bool
pluginType System.Type
instance StructureMap.Pipeline.Instance
return bool
        public bool Has(Type pluginType, Instance instance)
        {
            return _lock.Read(() => {
                int key = instance.InstanceKey(pluginType);
                return _objects.ContainsKey(key);
            });
        }