public Set ( |
||
pluginType | ||
instance | StructureMap.Pipeline.Instance | |
value | object | |
return | void |
public void Set(Type pluginType, Instance instance, object value)
{
if (value == null) return;
_lock.Write(() => {
int key = instance.InstanceKey(pluginType);
if (_objects.ContainsKey(key))
{
_objects[key] = value;
}
else
{
_objects.Add(key, value);
}
});
}