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;
        }
Beispiel #3
0
        public UnityComponent2([Dependency("MefComponent3")] IMefComponent1 mefComponent1,
            IUnityService1 unityService1)
        {
            Debug.Assert(mefComponent1 != null);
            Debug.Assert(unityService1 != null);

            m_MefComponent1 = mefComponent1;
            m_UnityService1 = unityService1;
        }
Beispiel #4
0
 public UnityComponent1(IMefComponent1 mefComponent1)
 {
     m_MefComponent1 = mefComponent1;
     Debug.Assert(mefComponent1 != null);
 }
Beispiel #5
0
        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);
 }