Exemplo n.º 1
0
        public IImplementingTypeSetup For(Type interfaceType)
        {
            var oldRecord = m_instanceRecords.FirstOrDefault(r => r.InterfaceType == interfaceType);

            if (oldRecord != null)
            {
                m_instanceRecords.Remove(oldRecord);
            }

            var record = new InstanceRecord()
            {
                InterfaceType = interfaceType
            };

            m_instanceRecords.Add(record);

            return(new ImplementingTypeSetup <object>(record, m_plugins.AllPlugins.ToList()));
        }
Exemplo n.º 2
0
 public InstanceConstruction(InstanceRecord record, IEnumerable <IPlugin> plugins) : base(record, plugins)
 {
     m_record = record;
 }
Exemplo n.º 3
0
 protected SetupElementBase(InstanceRecord record, IEnumerable <IPlugin> plugins)
 {
     m_record  = record;
     m_plugins = plugins;
 }
Exemplo n.º 4
0
 public ImplementingTypeSetup(InstanceRecord record, IList <IPlugin> plugins) : base(record, plugins)
 {
     m_record  = record;
     m_plugins = plugins;
 }