Beispiel #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()));
        }
Beispiel #2
0
 public InstanceConstruction(InstanceRecord record, IEnumerable <IPlugin> plugins) : base(record, plugins)
 {
     m_record = record;
 }
Beispiel #3
0
 protected SetupElementBase(InstanceRecord record, IEnumerable <IPlugin> plugins)
 {
     m_record  = record;
     m_plugins = plugins;
 }
Beispiel #4
0
 public ImplementingTypeSetup(InstanceRecord record, IList <IPlugin> plugins) : base(record, plugins)
 {
     m_record  = record;
     m_plugins = plugins;
 }