コード例 #1
0
 public ContainerManager(string adapterName, IContainerAdapterAccessor adapterAccessor)
 {
     AdapterAccessor = adapterAccessor;
     Adapter         = AdapterAccessor.GetAdapter(adapterName);;
 }
コード例 #2
0
 /// <summary>
 /// Container adapter & accessor constructor,  Never Self Scans
 /// </summary>
 /// <param name="containerAdapter">The container adapter</param>
 /// <param name="adapterAccessor">The adapter accessor</param>
 public ContainerManager(IContainerAdapter containerAdapter, IContainerAdapterAccessor adapterAccessor)
 {
     AdapterAccessor = adapterAccessor;
     AdapterAccessor.AddAdapter(containerAdapter.Name, containerAdapter);
     Adapter = containerAdapter;
 }