public UnityComponent2([Dependency("MefComponent3")] IMefComponent1 mefComponent1, IUnityService1 unityService1) { Debug.Assert(mefComponent1 != null); Debug.Assert(unityService1 != null); m_MefComponent1 = mefComponent1; m_UnityService1 = unityService1; }
public MefComponent3(IUnityService1 unityService1, [Import("MefComponent2")] IMefComponent1 mefComponent1) { Debug.Assert(unityService1 != null); Debug.Assert(mefComponent1 != null); Debug.Assert(mefComponent1 is MefComponent2); m_UnityService1 = unityService1; m_MefComponent1 = mefComponent1; }
public UnityComponent1(IMefComponent1 mefComponent1) { m_MefComponent1 = mefComponent1; Debug.Assert(mefComponent1 != null); }